maybe fix camera jumping when respawning
authorMatthias Braun <matze@braunis.de>
Thu, 31 Jan 2008 19:52:23 +0000 (19:52 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 31 Jan 2008 19:52:23 +0000 (19:52 +0000)
SVN-Revision: 5302

src/object/camera.cpp

index 28eab99..049ea88 100644 (file)
@@ -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();