projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccadeba
)
make it slightly less annoying :o)
author
Kahrl
<kahrl@gmx.net>
Thu, 8 Sep 2011 11:14:59 +0000
(13:14 +0200)
committer
Kahrl
<kahrl@gmx.net>
Thu, 8 Sep 2011 11:14:59 +0000
(13:14 +0200)
src/camera.cpp
patch
|
blob
|
history
diff --git
a/src/camera.cpp
b/src/camera.cpp
index 16fad6132e1f77a286fc255587fbc020b716b720..bdfbc88c268a8ba0bd5dc7f37314b1c7ea07e065 100644
(file)
--- 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.0
3
* cos(player->getPitch() * M_PI / 180)
+ f32 bobwidth = 0.0
2
* cos(player->getPitch() * M_PI / 180)
/ (bobangle_c * bobangle_c + 1);
f32 bobheight = bobwidth;
relative_cam_pos.X += bobwidth * bobangle_s;