[Super-tux-commit] supertux/src gameloop.cpp,1.124.2.1,1.124.2.2
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-07-22 13:52:54
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14702/src Modified Files: Tag: supertux_0_1_1_branch gameloop.cpp Log Message: Fixed the reset point bug in auto-scrolling that changed Tux position, but not camera's. (Not tested.) Index: gameloop.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameloop.cpp,v retrieving revision 1.124.2.1 retrieving revision 1.124.2.2 diff -u -d -r1.124.2.1 -r1.124.2.2 --- gameloop.cpp 15 May 2004 22:22:54 -0000 1.124.2.1 +++ gameloop.cpp 22 Jul 2004 13:52:44 -0000 1.124.2.2 @@ -119,6 +119,9 @@ { world->get_tux()->base.x = best_reset_point.x; world->get_tux()->base.y = best_reset_point.y; + + if((bool)world->get_level()->hor_autoscroll_speed) + scroll_x = best_reset_point.x; } } |