Move updating rain below positionCamera(). It solves the problem with diseppearing rain - ticket #972
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13653 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
e3a5c2a889
commit
17a0b1848d
@ -442,16 +442,6 @@ void Camera::getCameraSettings(float *above_kart, float *cam_angle,
|
|||||||
*/
|
*/
|
||||||
void Camera::update(float dt)
|
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
|
// The following settings give a debug camera which shows the track from
|
||||||
// high above the kart straight down.
|
// high above the kart straight down.
|
||||||
if(UserConfigParams::m_camera_debug)
|
if(UserConfigParams::m_camera_debug)
|
||||||
@ -499,6 +489,15 @@ void Camera::update(float dt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
positionCamera(dt, above_kart, cam_angle, side_way, distance, smoothing);
|
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
|
} // update
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user