[Super-tux-commit] supertux/src player.cpp,1.105,1.106
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-05-18 17:46:14
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27691/src Modified Files: player.cpp Log Message: Fix bug reported by Ryan: in level smaller than 19, Tux would stay in dead move forever. Index: player.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/player.cpp,v retrieving revision 1.105 retrieving revision 1.106 diff -u -d -r1.105 -r1.106 --- player.cpp 18 May 2004 17:20:27 -0000 1.105 +++ player.cpp 18 May 2004 17:46:05 -0000 1.106 @@ -799,7 +799,7 @@ bool Player::is_dead() { - if(base.y > screen->h + scroll_y || + if(base.y > screen->h + scroll_y || base.y > World::current()->get_level()->height*32 || base.x < scroll_x - AUTOSCROLL_DEAD_INTERVAL) // can happen in auto-scrolling return true; else |