From: Tobias Gläßer Date: Sat, 13 Mar 2004 18:47:54 +0000 (+0000) Subject: the player couldn't jump heigher than the screen. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3017bdb29070422d0ec73e2e732242f2da6d9aa9;p=supertux.git the player couldn't jump heigher than the screen. SVN-Revision: 203 --- diff --git a/src/player.c b/src/player.c index 5e65023f9..3df8f89d9 100644 --- a/src/player.c +++ b/src/player.c @@ -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); }