From: Marek Moeckel Date: Sat, 18 Sep 2004 16:58:16 +0000 (+0000) Subject: Tux can now flap after bouncing off an enemy X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d3a027e011916c868688f8d3a4ce7fd2880a5ff1;p=supertux.git Tux can now flap after bouncing off an enemy SVN-Revision: 1948 --- diff --git a/src/player.cpp b/src/player.cpp index a5ff92ae2..533e7613b 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -1153,6 +1153,10 @@ Player::check_bounds(Camera* camera) void Player::bounce(BadGuy* badguy) { + //Make sure we stopped flapping + flapping = false; + falling_from_flap = false; + if (input.up) physic.set_velocity_y(5.2); else