]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Fix liquid post effect colour behaviour in third person view
authorred-001 <red-001@outlook.ie>
Sun, 25 Feb 2018 22:52:05 +0000 (22:52 +0000)
committerparamat <mat.gregory@virginmedia.com>
Tue, 27 Feb 2018 19:40:10 +0000 (19:40 +0000)
src/camera.cpp

index 8a26c7822830b7b1f98cd675e89d86f3b6e5b63d..09ff938867b65b50e0af48acaf7a679cc2650a97 100644 (file)
@@ -446,8 +446,9 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 busytime, f32 tool_r
        // *100.0 helps in large map coordinates
        m_cameranode->setTarget(my_cp-intToFloat(m_camera_offset, BS) + 100 * m_camera_direction);
 
-       // update the camera position in front-view mode to render blocks behind player
-       if (m_camera_mode == CAMERA_MODE_THIRD_FRONT)
+       // update the camera position in third-person mode to render blocks behind player
+       // and correctly apply liquid post FX.
+       if (m_camera_mode != CAMERA_MODE_FIRST)
                m_camera_position = my_cp;
 
        // Get FOV