center camera on tux feet, so we get no jumps when tux ducks
authorMatthias Braun <matze@braunis.de>
Thu, 8 May 2008 19:11:28 +0000 (19:11 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 8 May 2008 19:11:28 +0000 (19:11 +0000)
SVN-Revision: 5440

src/object/camera.cpp

index 6833987..b9454ce 100644 (file)
@@ -310,7 +310,8 @@ Camera::update_scroll_normal(float elapsed_time)
 {
   const CameraConfig& config = *(this->config);
   Player* player = sector->player;
-  const Vector& player_pos = player->get_bbox().get_middle();
+  const Vector& player_pos = Vector(player->get_bbox().get_middle().x,
+                                    player->get_bbox().get_bottom());
   static Vector last_player_pos = player_pos;
   Vector player_delta = player_pos - last_player_pos;
   last_player_pos = player_pos;