aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2011-09-08 13:14:59 +0200
committerKahrl <kahrl@gmx.net>2011-09-08 13:14:59 +0200
commit0931d4b7ff95dc9b51bee28851c3780b2648ffd0 (patch)
tree7fbd039f30bf427cddb81c47463383e87306eef3 /src
parentccadebabba18226b1664af35888ee3aff6861be7 (diff)
downloadminetest-0931d4b7ff95dc9b51bee28851c3780b2648ffd0.tar.gz
minetest-0931d4b7ff95dc9b51bee28851c3780b2648ffd0.tar.bz2
minetest-0931d4b7ff95dc9b51bee28851c3780b2648ffd0.zip
make it slightly less annoying :o)
Diffstat (limited to 'src')
-rw-r--r--src/camera.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/camera.cpp b/src/camera.cpp
index 16fad6132..bdfbc88c2 100644
--- a/src/camera.cpp
+++ b/src/camera.cpp
@@ -105,7 +105,7 @@ void Camera::update(LocalPlayer* player, f32 frametime, v2u32 screensize)
f32 bobangle = m_view_bobbing_anim * 2 * M_PI / 0x1000000;
f32 bobangle_s = sin(bobangle);
f32 bobangle_c = cos(bobangle);
- f32 bobwidth = 0.03 * cos(player->getPitch() * M_PI / 180)
+ f32 bobwidth = 0.02 * cos(player->getPitch() * M_PI / 180)
/ (bobangle_c * bobangle_c + 1);
f32 bobheight = bobwidth;
relative_cam_pos.X += bobwidth * bobangle_s;