Tweak previous commit

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8636 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-05-18 01:15:04 +00:00
parent 426da1ed04
commit 9106fb8bfc

View File

@ -537,14 +537,18 @@ void Kart::reset()
applyEngineForce (0.0f);
Moveable::reset();
if(m_skidmarks) m_skidmarks->reset();
if (m_skidmarks)
{
m_skidmarks->reset();
m_skidmarks->adjustFog( track_manager->getTrack( race_manager->getTrackName() )->isFogEnabled() );
}
for(int j=0; j<m_vehicle->getNumWheels(); j++)
{
m_vehicle->updateWheelTransform(j, true);
}
TerrainInfo::update(getXYZ());
m_skidmarks->adjustFog( track_manager->getTrack( race_manager->getTrackName() )->isFogEnabled() );
// Reset is also called when the kart is created, at which time
// m_controller is not yet defined, so this has to be tested here.