Hopefully fixed problem with tutorial which sometimes was starting in a loop

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14728 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
deveee 2013-12-17 21:00:56 +00:00
parent 7147490b90
commit 79e01c5c56

View File

@ -729,6 +729,7 @@ void World::updateWorld(float dt)
{
if (m_schedule_exit_race)
{
m_schedule_exit_race = false;
race_manager->exitRace();
race_manager->setAIKartOverride("");
@ -736,6 +737,7 @@ void World::updateWorld(float dt)
if (m_schedule_tutorial)
{
m_schedule_tutorial = false;
race_manager->setNumLocalPlayers(1);
race_manager->setMajorMode (RaceManager::MAJOR_MODE_SINGLE);
race_manager->setMinorMode (RaceManager::MINOR_MODE_TUTORIAL);