From: Matthias Braun Date: Thu, 31 Jan 2008 19:52:23 +0000 (+0000) Subject: maybe fix camera jumping when respawning X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=52a0b9a014039ff36e14b670a17fc61c7e90011c;p=supertux.git maybe fix camera jumping when respawning SVN-Revision: 5302 --- diff --git a/src/object/camera.cpp b/src/object/camera.cpp index 28eab996b..049ea88b2 100644 --- a/src/object/camera.cpp +++ b/src/object/camera.cpp @@ -202,7 +202,7 @@ Camera::write(lisp::Writer& writer) void Camera::reset(const Vector& tuxpos) { - translation.x = tuxpos.x - SCREEN_WIDTH/3 * 2; + translation.x = tuxpos.x - SCREEN_WIDTH/2; translation.y = tuxpos.y - SCREEN_HEIGHT/2; shakespeed = 0; shaketimer.stop();