From 20f50f690c18aefbedeeb43eda094c8cb70351a9 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 8 May 2008 19:11:28 +0000 Subject: [PATCH] center camera on tux feet, so we get no jumps when tux ducks SVN-Revision: 5440 --- src/object/camera.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/object/camera.cpp b/src/object/camera.cpp index 6833987d3..b9454ce31 100644 --- a/src/object/camera.cpp +++ b/src/object/camera.cpp @@ -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; -- 2.11.0