Skully jumps again.
authorWolfgang Becker <uafr@gmx.de>
Wed, 12 Jul 2006 15:59:55 +0000 (15:59 +0000)
committerWolfgang Becker <uafr@gmx.de>
Wed, 12 Jul 2006 15:59:55 +0000 (15:59 +0000)
SVN-Revision: 3990

src/badguy/skullyhop.cpp

index d9b954e..302ac9a 100644 (file)
@@ -95,7 +95,7 @@ SkullyHop::collision_solid(const CollisionHit& hit)
     return;
 
   // check if we hit the floor while falling
-  if(hit.bottom) {
+  if(hit.bottom && physic.get_velocity_y() > 0 ) {
     set_state(STANDING);
   }
   // check if we hit the roof while climbing