From: Ricardo Cruz Date: Wed, 19 May 2004 13:46:45 +0000 (+0000) Subject: Just improved a bit the butt jump control. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=11aed7a85b5b87f7762615d18989c98323014299;p=supertux.git Just improved a bit the butt jump control. You don't have to press Down while pressing Up, but still you've to press it right away... SVN-Revision: 1271 --- diff --git a/src/player.cpp b/src/player.cpp index 036cb6965..625805b20 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -421,10 +421,10 @@ Player::handle_vertical_input() /* Do butt jump, in case the player has done the combination (full jump and hold DOWN) */ - if (input.down == UP && physic.get_velocity_y() < 0 && butt_jump) + if (input.down == UP && physic.get_velocity_y() == World::current()->get_level()->gravity && butt_jump) butt_jump = false; // in case DOWN is not hold after the full jump, disable it - if (butt_jump && on_ground() && size == BIG) + if (input.down == DOWN && butt_jump && on_ground() && size == BIG) { if(World::current()->trybreakbrick(base.x, base.y + base.height, false) || World::current()->trybreakbrick(