From: Ingo Ruhnke Date: Tue, 13 Apr 2004 18:17:26 +0000 (+0000) Subject: - commited MatzeBs duck fix X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9b794adf9361ee00cc1e984a24954d564536b64c;p=supertux.git - commited MatzeBs duck fix SVN-Revision: 522 --- diff --git a/src/player.cpp b/src/player.cpp index 3b8400b54..ddb81044a 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -169,7 +169,6 @@ Player::action(double frame_ratio) /* Move tux: */ previous_base = base; - duck = false; physic.apply(frame_ratio, base.x, base.y); if(dying == DYING_NOT) { @@ -292,23 +291,6 @@ Player::action(double frame_ratio) player_status.next_level = 1; } - /* Duck! */ - if (input.down == DOWN && size == BIG && !duck) - { - duck = true; - base.height = 32; - base.y += 32; - // changing base size confuses collision otherwise - old_base = previous_base = base; - } - else if(input.down == UP && size == BIG && duck) - { - duck = false; - base.y -= 32; - base.height = 64; - old_base = previous_base = base; - } - // check some timers skidding_timer.check(); invincible_timer.check();