From d08ee0a8c91c818e6c7347fb97bdc170bd0b243c Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 24 May 2004 21:28:44 +0000 Subject: [PATCH] try to make the scrolling a bit smoother SVN-Revision: 1312 --- src/camera.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.11.0