diff options
Diffstat (limited to 'src/camera.cpp')
-rw-r--r-- | src/camera.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/camera.cpp b/src/camera.cpp index cf96f3308..ebb154137 100644 --- a/src/camera.cpp +++ b/src/camera.cpp @@ -291,7 +291,7 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 busytime, f32 tool_r { f32 oldy = old_player_position.Y; f32 newy = player_position.Y; - f32 t = exp(-23*frametime); + f32 t = std::exp(-23 * frametime); player_position.Y = oldy * t + newy * (1-t); } @@ -481,7 +481,7 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 busytime, f32 tool_r 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.0f - tool_reload_ratio), 0.5f); + f32 ratiothing = std::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.7f); |