Fix #3820
This commit is contained in:
parent
34f262b05b
commit
744ce6bc1a
@ -367,6 +367,9 @@ void World::reset(bool restart)
|
|||||||
if(race_manager->hasGhostKarts())
|
if(race_manager->hasGhostKarts())
|
||||||
ReplayPlay::get()->reset();
|
ReplayPlay::get()->reset();
|
||||||
|
|
||||||
|
// Remove all (if any) previous game flyables before reset karts, so no
|
||||||
|
// explosion animation will be created
|
||||||
|
projectile_manager->cleanup();
|
||||||
resetAllKarts();
|
resetAllKarts();
|
||||||
// Note: track reset must be called after all karts exist, since check
|
// Note: track reset must be called after all karts exist, since check
|
||||||
// objects need to allocate data structures depending on the number
|
// objects need to allocate data structures depending on the number
|
||||||
@ -382,7 +385,6 @@ void World::reset(bool restart)
|
|||||||
// Enable SFX again
|
// Enable SFX again
|
||||||
SFXManager::get()->resumeAll();
|
SFXManager::get()->resumeAll();
|
||||||
|
|
||||||
projectile_manager->cleanup();
|
|
||||||
RewindManager::get()->reset();
|
RewindManager::get()->reset();
|
||||||
race_manager->reset();
|
race_manager->reset();
|
||||||
// Make sure to overwrite the data from the previous race.
|
// Make sure to overwrite the data from the previous race.
|
||||||
|
Loading…
Reference in New Issue
Block a user