Bugfix: check_structures were reset before karts, which means that in the very first frame of a
restarted race incorrect checks would be triggered (e.g. causing a new lap to be counted). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4235 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
29ddca4044
commit
9f17650552
@ -490,7 +490,6 @@ void World::getDefaultCollectibles(int& collectible_type, int& amount )
|
||||
void World::restartRace()
|
||||
{
|
||||
TimedRace::reset();
|
||||
m_track->reset();
|
||||
m_faster_music_active = false;
|
||||
m_eliminated_karts = 0;
|
||||
m_eliminated_players = 0;
|
||||
@ -504,6 +503,7 @@ void World::restartRace()
|
||||
|
||||
// Start music from beginning
|
||||
sound_manager->stopMusic();
|
||||
m_track->reset();
|
||||
m_track->startMusic();
|
||||
|
||||
// Enable SFX again
|
||||
|
Loading…
Reference in New Issue
Block a user