From: Matthias Braun Date: Thu, 8 May 2008 19:11:28 +0000 (+0000) Subject: center camera on tux feet, so we get no jumps when tux ducks X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=20f50f690c18aefbedeeb43eda094c8cb70351a9;p=supertux.git center camera on tux feet, so we get no jumps when tux ducks SVN-Revision: 5440 --- 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;