Reset track objects during onGo when race start for network

This commit is contained in:
Benau 2018-07-19 01:55:05 +08:00
parent 1d7a9e9465
commit 1ba361ae23

View File

@ -543,6 +543,10 @@ void World::onGo()
if (m_karts[i]->isGhostKart()) continue;
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
//-----------------------------------------------------------------------------