Fix liquid post effect colour behaviour in third person view

This commit is contained in:
red-001 2018-02-25 22:52:05 +00:00 committed by paramat
parent c610643c4c
commit e7f1611991

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