Skip to content

Commit

Permalink
Quick and dirty fix to respawn camera jump bug; bug 850
Browse files Browse the repository at this point in the history
  • Loading branch information
genosse-einhorn authored and LMH0013 committed Feb 13, 2013
1 parent 924aab9 commit b6a563d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/supertux/sector.cpp
Expand Up @@ -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
Expand Down

0 comments on commit b6a563d

Please sign in to comment.