From d3a027e011916c868688f8d3a4ce7fd2880a5ff1 Mon Sep 17 00:00:00 2001 From: Marek Moeckel Date: Sat, 18 Sep 2004 16:58:16 +0000 Subject: [PATCH] Tux can now flap after bouncing off an enemy SVN-Revision: 1948 --- src/player.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.11.0