From cb0adac7c6d6984fed86ec6c2357e7a7b448e8e3 Mon Sep 17 00:00:00 2001 From: Ryan Flegel Date: Thu, 12 Jun 2008 21:04:02 +0000 Subject: [PATCH] #305: applied tripod's patch to stop Jumpy from making one extra jump after being killed from below SVN-Revision: 5566 --- src/badguy/jumpy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.11.0