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:
parent
426da1ed04
commit
9106fb8bfc
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user