From: Ryan Flegel Date: Thu, 12 Jun 2008 21:04:02 +0000 (+0000) Subject: #305: applied tripod's patch to stop Jumpy from making one extra jump after being... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=cb0adac7c6d6984fed86ec6c2357e7a7b448e8e3;p=supertux.git #305: applied tripod's patch to stop Jumpy from making one extra jump after being killed from below SVN-Revision: 5566 --- diff --git a/src/badguy/jumpy.cpp b/src/badguy/jumpy.cpp index defb54595..20b3f5136 100644 --- a/src/badguy/jumpy.cpp +++ b/src/badguy/jumpy.cpp @@ -65,7 +65,7 @@ Jumpy::hit(const CollisionHit& chit) groundhit_pos_set = true; } - physic.set_velocity_y(frozen ? 0 : JUMPSPEED); + physic.set_velocity_y((frozen || get_state() == STATE_FALLING) ? 0 : JUMPSPEED); // TODO create a nice sound for this... //sound_manager->play("sounds/skid.wav"); } else if(chit.top) {