Fix Camera::add_arm_inertia -> addArmInertia
authorLoic Blot <loic.blot@unix-experience.fr>
Mon, 26 Jun 2017 18:10:11 +0000 (20:10 +0200)
committerLoic Blot <loic.blot@unix-experience.fr>
Mon, 26 Jun 2017 18:10:11 +0000 (20:10 +0200)
src/camera.cpp
src/camera.h

index f75d6018daddf51a67c9635ce275358435ebcfc1..dd4e3963b07c116225866025b595f615e9db6799 100644 (file)
@@ -194,7 +194,7 @@ void Camera::step(f32 dtime)
        }
 }
 
-void Camera::add_arm_inertia(f32 player_yaw, f32 frametime)
+void Camera::addArmInertia(f32 player_yaw, f32 frametime)
 {
        m_cam_vel.X = std::fabs((m_last_cam_pos.X - player_yaw) / m_timer.X) * 0.01f;
        m_cam_vel.Y = std::fabs((m_last_cam_pos.Y - m_camera_direction.Y) / m_timer.Y);
@@ -458,7 +458,7 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 busytime,
        m_cameranode->setFOV(m_fov_y);
 
        if (m_arm_inertia)
-               add_arm_inertia(player->getYaw(), frametime);
+               addArmInertia(player->getYaw(), frametime);
 
        // Position the wielded item
        //v3f wield_position = v3f(45, -35, 65);
index 9ed4b72779c95f0eaa2f2413c1adf6832abeb566..4b2d9d45ece7ec211501c2e2f928832b1afc3d61 100644 (file)
@@ -166,7 +166,7 @@ public:
 
        void drawNametags();
 
-       inline void add_arm_inertia(f32 player_yaw, f32 frametime);
+       inline void addArmInertia(f32 player_yaw, f32 frametime);
 
 private:
        // Nodes