Reset track objects during onGo when race start for network
This commit is contained in:
parent
1d7a9e9465
commit
1ba361ae23
@ -543,6 +543,10 @@ void World::onGo()
|
|||||||
if (m_karts[i]->isGhostKart()) continue;
|
if (m_karts[i]->isGhostKart()) continue;
|
||||||
m_karts[i]->getVehicle()->setAllBrakes(0);
|
m_karts[i]->getVehicle()->setAllBrakes(0);
|
||||||
}
|
}
|
||||||
|
// Reset track objects 1 more time to make sure all instances of moveable
|
||||||
|
// fall at the same instant when race start in network
|
||||||
|
if (NetworkConfig::get()->isNetworking())
|
||||||
|
Track::getCurrentTrack()->getTrackObjectManager()->reset();
|
||||||
} // onGo
|
} // onGo
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user