From: Matthias Braun Date: Mon, 24 May 2004 21:28:44 +0000 (+0000) Subject: try to make the scrolling a bit smoother X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d08ee0a8c91c818e6c7347fb97bdc170bd0b243c;p=supertux.git try to make the scrolling a bit smoother SVN-Revision: 1312 --- diff --git a/src/camera.cpp b/src/camera.cpp index b7d3afd27..1db1c9dab 100644 --- a/src/camera.cpp +++ b/src/camera.cpp @@ -131,7 +131,7 @@ Camera::scroll_normal(float elapsed_time) float delta_x = translation.x - target_x; float speed_x = delta_x / elapsed_time; - float maxv = 1 + fabsf(player->physic.get_velocity_x() * 2); + float maxv = 1 + fabsf(player->physic.get_velocity_x() * 1.3); if(speed_x > maxv) speed_x = maxv; else if(speed_x < -maxv)