Tux can now flap after bouncing off an enemy
authorMarek Moeckel <wansti@gmx.de>
Sat, 18 Sep 2004 16:58:16 +0000 (16:58 +0000)
committerMarek Moeckel <wansti@gmx.de>
Sat, 18 Sep 2004 16:58:16 +0000 (16:58 +0000)
SVN-Revision: 1948

src/player.cpp

index a5ff92a..533e761 100644 (file)
@@ -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