From: Tobias Gläßer Date: Mon, 10 May 2004 20:13:01 +0000 (+0000) Subject: fixed end of level to begin wrap around in the title demo. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=dc524e0ce341c14fb77d81ef336e38d4976d584e;p=supertux.git fixed end of level to begin wrap around in the title demo. SVN-Revision: 1082 --- diff --git a/src/title.cpp b/src/title.cpp index ab172b6ac..c54652dbb 100644 --- a/src/title.cpp +++ b/src/title.cpp @@ -191,8 +191,8 @@ void draw_demo(GameSession* session, double frame_ratio) // Wrap around at the end of the level back to the beginnig if(plevel->width * 32 - 320 < tux->base.x) { - tux->base.x = tux->base.x - (plevel->width * 32 - 640); - scroll_x = tux->base.x - 320; + tux->level_begin() + scroll_x = 0; } tux->can_jump = true;