the player couldn't jump heigher than the screen.
authorTobias Gläßer <tobi.web@gmx.de>
Sat, 13 Mar 2004 18:47:54 +0000 (18:47 +0000)
committerTobias Gläßer <tobi.web@gmx.de>
Sat, 13 Mar 2004 18:47:54 +0000 (18:47 +0000)
SVN-Revision: 203

src/player.c

index 5e65023..3df8f89 100644 (file)
@@ -1014,9 +1014,7 @@ void player_keep_in_bounds(player_type* pplayer)
 
   /* Keep in-bounds, vertically: */
 
-  if (pplayer->base.y < 0)
-    pplayer->base.y = 0;
-  else if (pplayer->base.y > screen->h)
+  if (pplayer->base.y > screen->h)
     {
       player_kill(&tux,KILL);
     }