Reset history data each time a race is started (to avoid that previous

history data is used).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10204 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2011-11-14 11:57:11 +00:00
parent 09d998bc24
commit c537c6873e

View File

@@ -902,6 +902,9 @@ void World::restartRace()
projectile_manager->cleanup();
race_manager->reset();
// Make sure to overwrite the data from the previous race.
if(!history->replayHistory()) history->initRecording();
} // restartRace
//-----------------------------------------------------------------------------