projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9170594
)
try to make the scrolling a bit smoother
author
Matthias Braun
<matze@braunis.de>
Mon, 24 May 2004 21:28:44 +0000
(21:28 +0000)
committer
Matthias Braun
<matze@braunis.de>
Mon, 24 May 2004 21:28:44 +0000
(21:28 +0000)
SVN-Revision: 1312
src/camera.cpp
patch
|
blob
|
history
diff --git
a/src/camera.cpp
b/src/camera.cpp
index
b7d3afd
..
1db1c9d
100644
(file)
--- 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)