diff --git a/src/graphics/camera.cpp b/src/graphics/camera.cpp index fc8ffc356..bbd22fe25 100644 --- a/src/graphics/camera.cpp +++ b/src/graphics/camera.cpp @@ -442,16 +442,6 @@ void Camera::getCameraSettings(float *above_kart, float *cam_angle, */ void Camera::update(float dt) { - if (UserConfigParams::m_graphical_effects) - { - if (m_rain) - { - m_rain->setPosition( getCameraSceneNode()->getPosition() ); - m_rain->update(dt); - } - } // UserConfigParams::m_graphical_effects - - // The following settings give a debug camera which shows the track from // high above the kart straight down. if(UserConfigParams::m_camera_debug) @@ -499,6 +489,15 @@ void Camera::update(float dt) } positionCamera(dt, above_kart, cam_angle, side_way, distance, smoothing); + + if (UserConfigParams::m_graphical_effects) + { + if (m_rain) + { + m_rain->setPosition( getCameraSceneNode()->getPosition() ); + m_rain->update(dt); + } + } // UserConfigParams::m_graphical_effects } // update // ----------------------------------------------------------------------------