minor changes to prepare for more modes to come

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2335 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2008-10-11 00:57:31 +00:00
parent e6a257a7e2
commit cff932964c

View File

@@ -261,8 +261,9 @@ void RaceManager::startNextRace()
// handling of objects which get created in the constructor
// and need world to be defined.
if(m_minor_mode==MINOR_MODE_FOLLOW_LEADER) new FollowTheLeaderRace();
else new StandardRace();
else if(m_minor_mode==MINOR_MODE_QUICK_RACE || m_minor_mode==MINOR_MODE_TIME_TRIAL) new StandardRace();
else{ fprintf(stderr,"Could not create given race mode\n"); assert(0); }
m_active_race = true;
} // startNextRace