Just a small fix to prevent Tux from butt-jumping when ducked.
authorMarek Moeckel <wansti@gmx.de>
Mon, 7 Jun 2004 15:13:52 +0000 (15:13 +0000)
committerMarek Moeckel <wansti@gmx.de>
Mon, 7 Jun 2004 15:13:52 +0000 (15:13 +0000)
SVN-Revision: 1418

src/player.cpp

index b3ecd98..d5f6121 100644 (file)
@@ -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;