From: Wolfgang Becker Date: Wed, 12 Jul 2006 15:59:55 +0000 (+0000) Subject: Skully jumps again. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=32bbcd2699cdbc533f9bb95c7679182b4eef2767;p=supertux.git Skully jumps again. SVN-Revision: 3990 --- diff --git a/src/badguy/skullyhop.cpp b/src/badguy/skullyhop.cpp index d9b954e8e..302ac9aea 100644 --- a/src/badguy/skullyhop.cpp +++ b/src/badguy/skullyhop.cpp @@ -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