- fixed duck-jump bug
authorIngo Ruhnke <grumbel@gmx.de>
Sat, 24 Apr 2004 12:45:34 +0000 (12:45 +0000)
committerIngo Ruhnke <grumbel@gmx.de>
Sat, 24 Apr 2004 12:45:34 +0000 (12:45 +0000)
SVN-Revision: 680

src/player.cpp

index 23361f7..9f950c8 100644 (file)
@@ -482,7 +482,7 @@ Player::handle_input()
       // changing base size confuses collision otherwise
       old_base = previous_base = base;
     }
-  else if(input.down == UP && size == BIG && duck && physic.get_velocity_y() == 0)
+  else if(input.down == UP && size == BIG && duck && physic.get_velocity_y() == 0 && on_ground())
     {
       duck = false;
       base.y -= 32;