From: Marek Moeckel Date: Mon, 7 Jun 2004 15:13:52 +0000 (+0000) Subject: Just a small fix to prevent Tux from butt-jumping when ducked. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=797d2906f91cf8097f8d4c542753ccfd5a9b8350;p=supertux.git Just a small fix to prevent Tux from butt-jumping when ducked. SVN-Revision: 1418 --- diff --git a/src/player.cpp b/src/player.cpp index b3ecd98cf..d5f612149 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -496,7 +496,7 @@ Player::handle_vertical_input() /* In case the player has pressed Down while in a certain range of air, enable butt jump action */ - if (input.down == DOWN && !butt_jump) + if (input.down == DOWN && !butt_jump && !duck) if(tiles_on_air(TILES_FOR_BUTTJUMP) && jumping) butt_jump = true;