From: Ingo Ruhnke Date: Sat, 24 Apr 2004 12:45:34 +0000 (+0000) Subject: - fixed duck-jump bug X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=bee641c99cf6aeb2b2ee7c21c6b4023c7c9bb249;p=supertux.git - fixed duck-jump bug SVN-Revision: 680 --- 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;