diff options
author | red-001 <red-001@outlook.ie> | 2018-02-25 22:52:05 +0000 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2018-02-27 19:40:10 +0000 |
commit | e7f16119913f7b2c98059398085d410684c9d8c0 (patch) | |
tree | 99444be712e8d60e2a458535aff728ef8b3139a0 | |
parent | c610643c4ca1d1c32ca3e400b5cb055f25401107 (diff) | |
download | minetest-e7f16119913f7b2c98059398085d410684c9d8c0.tar.gz minetest-e7f16119913f7b2c98059398085d410684c9d8c0.tar.bz2 minetest-e7f16119913f7b2c98059398085d410684c9d8c0.zip |
Fix liquid post effect colour behaviour in third person view
-rw-r--r-- | src/camera.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/camera.cpp b/src/camera.cpp index 8a26c7822..09ff93886 100644 --- a/src/camera.cpp +++ b/src/camera.cpp @@ -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 |