From bee641c99cf6aeb2b2ee7c21c6b4023c7c9bb249 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Sat, 24 Apr 2004 12:45:34 +0000 Subject: [PATCH] - fixed duck-jump bug SVN-Revision: 680 --- src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.cpp b/src/player.cpp index 23361f7cd..9f950c852 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -482,7 +482,7 @@ Player::handle_input() // changing base size confuses collision otherwise old_base = previous_base = base; } - else if(input.down == UP && size == BIG && duck && physic.get_velocity_y() == 0) + else if(input.down == UP && size == BIG && duck && physic.get_velocity_y() == 0 && on_ground()) { duck = false; base.y -= 32; -- 2.11.0