aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2016-08-20 02:05:34 +0100
committerparamat <mat.gregory@virginmedia.com>2016-08-26 05:26:52 +0100
commitfb20b45100490acd47038be43b6f257c1bd75d97 (patch)
tree4fb8f2f8ac48597cc8ebb2d0d08a3fe5b906aff5 /src
parente58a55aa82dfc66325a694dcc3519d3c0f3388a6 (diff)
downloadminetest-fb20b45100490acd47038be43b6f257c1bd75d97.tar.gz
minetest-fb20b45100490acd47038be43b6f257c1bd75d97.tar.bz2
minetest-fb20b45100490acd47038be43b6f257c1bd75d97.zip
Camera: Higher frequency limit for view/hand bobbing and footsteps
Rebased and tuned version of Calinou's original pull request. 'm_view_bobbing_speed' controls the frequency of view bobbing, hand bobbing and footsteps, it was limited to a maximum of 40 (walking frequency) so did not increase if player speed was modified by a 'speed buff', a sprinting mod or modified in .conf or advanced settngs. This commit raises the limit to 70 which is suitable for sprinting.
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 e1fec4a3e..4feab1fe5 100644
--- a/src/camera.cpp
+++ b/src/camera.cpp
@@ -472,7 +472,7 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 busytime,
{
// Start animation
m_view_bobbing_state = 1;
- m_view_bobbing_speed = MYMIN(speed.getLength(), 40);
+ m_view_bobbing_speed = MYMIN(speed.getLength(), 70);
}
else if (m_view_bobbing_state == 1)
{