Skip to content

Commit 1ba361a

Browse files
committed
Reset track objects during onGo when race start for network
1 parent 1d7a9e9 commit 1ba361a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/modes/world.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,10 @@ void World::onGo()
543543
if (m_karts[i]->isGhostKart()) continue;
544544
m_karts[i]->getVehicle()->setAllBrakes(0);
545545
}
546+
// Reset track objects 1 more time to make sure all instances of moveable
547+
// fall at the same instant when race start in network
548+
if (NetworkConfig::get()->isNetworking())
549+
Track::getCurrentTrack()->getTrackObjectManager()->reset();
546550
} // onGo
547551

548552
//-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)