From: Jonas Kuemmerlin Date: Wed, 13 Feb 2013 20:09:16 +0000 (-1000) Subject: Quick and dirty fix to respawn camera jump bug; bug 850 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=b6a563dd2856e3d45bb89b0fe91e8702fd71041c;p=supertux.git Quick and dirty fix to respawn camera jump bug; bug 850 --- diff --git a/src/supertux/sector.cpp b/src/supertux/sector.cpp index c52a03cf0..91b469d97 100644 --- a/src/supertux/sector.cpp +++ b/src/supertux/sector.cpp @@ -594,7 +594,13 @@ Sector::activate(const Vector& player_pos) } } + //FIXME: This is a really dirty workaround for this strange camera jump + player->move(player->get_pos()+Vector(-32, 0)); camera->reset(player->get_pos()); + camera->update(1); + player->move(player->get_pos()+(Vector(32, 0))); + camera->update(1); + update_game_objects(); //Run default.nut just before init script