summaryrefslogtreecommitdiff
path: root/src/camera.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-18 19:08:13 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-18 19:08:13 +0200
commitc54a40df0665b72c0d58641ce2e8fceecb8d2e22 (patch)
tree343eacdff3046fe106a4a7594d164dfca82818a9 /src/camera.cpp
parent9c4f68e1745266d97f20c9311d33f7476bb2d964 (diff)
downloadminetest-c54a40df0665b72c0d58641ce2e8fceecb8d2e22.tar.gz
minetest-c54a40df0665b72c0d58641ce2e8fceecb8d2e22.tar.bz2
minetest-c54a40df0665b72c0d58641ce2e8fceecb8d2e22.zip
Attempt to fix build for MSVC
Diffstat (limited to 'src/camera.cpp')
-rw-r--r--src/camera.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/camera.cpp b/src/camera.cpp
index 97571c77d..2a15386d9 100644
--- a/src/camera.cpp
+++ b/src/camera.cpp
@@ -279,15 +279,15 @@ void Camera::update(LocalPlayer* player, f32 frametime, v2u32 screensize,
if(m_digging_anim > 0.5)
frac = 2.0 * (m_digging_anim - 0.5);
// This value starts from 1 and settles to 0
- f32 ratiothing = pow((1.0 - tool_reload_ratio), 0.5);
- //f32 ratiothing2 = pow(ratiothing, 0.5);
+ f32 ratiothing = pow((1.0f - tool_reload_ratio), 0.5f);
+ //f32 ratiothing2 = pow(ratiothing, 0.5f);
f32 ratiothing2 = (easeCurve(ratiothing*0.5))*2.0;
- wield_position.Y -= frac * 25.0 * pow(ratiothing2, 1.7);
+ wield_position.Y -= frac * 25.0 * pow(ratiothing2, 1.7f);
//wield_position.Z += frac * 5.0 * ratiothing2;
- wield_position.X -= frac * 35.0 * pow(ratiothing2, 1.1);
- wield_rotation.Y += frac * 70.0 * pow(ratiothing2, 1.4);
- //wield_rotation.X -= frac * 15.0 * pow(ratiothing2, 1.4);
- //wield_rotation.Z += frac * 15.0 * pow(ratiothing2, 1.0);
+ wield_position.X -= frac * 35.0 * pow(ratiothing2, 1.1f);
+ wield_rotation.Y += frac * 70.0 * pow(ratiothing2, 1.4f);
+ //wield_rotation.X -= frac * 15.0 * pow(ratiothing2, 1.4f);
+ //wield_rotation.Z += frac * 15.0 * pow(ratiothing2, 1.0f);
}
if (m_digging_button != -1)
{