Fixed motion blur at the end of the race and made it relative to the speed of the kart, not its current maximum speed

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9354 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
funto66 2011-07-25 21:36:21 +00:00
parent d6bee90cfa
commit 46dab63f2d

View File

@ -400,6 +400,9 @@ void Camera::getCameraSettings(float *above_kart, float *cam_angle,
*/ */
void Camera::update(float dt) void Camera::update(float dt)
{ {
// Initially, disable motion blur
irr_driver->getPostProcessing()->setCameraSpeed(0.0f);
// 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)
@ -444,8 +447,7 @@ void Camera::update(float dt)
} }
// Apply the motion blur according to the speed of the kart // Apply the motion blur according to the speed of the kart
if(UserConfigParams::m_postprocess_enabled) irr_driver->getPostProcessing()->setCameraSpeed(m_kart->getSpeed());
irr_driver->getPostProcessing()->setCameraSpeed(m_kart->getCurrentMaxSpeed());
positionCamera(dt, above_kart, cam_angle, side_way, distance, smoothing); positionCamera(dt, above_kart, cam_angle, side_way, distance, smoothing);
} // update } // update