From c4f85ccbdb75c2782f1a89492ab2b98569bddd20 Mon Sep 17 00:00:00 2001 From: deveee Date: Wed, 11 Sep 2013 13:08:54 +0000 Subject: [PATCH] Tutorial cannot be played in reverse mode. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13661 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/modes/world.cpp | 1 + src/states_screens/help_screen_1.cpp | 1 + src/states_screens/main_menu_screen.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/src/modes/world.cpp b/src/modes/world.cpp index 92e76e05f..c015f665a 100644 --- a/src/modes/world.cpp +++ b/src/modes/world.cpp @@ -743,6 +743,7 @@ void World::updateWorld(float dt) race_manager->setNumKarts( 1 ); race_manager->setTrack( "tutorial" ); race_manager->setDifficulty(RaceManager::DIFFICULTY_EASY); + race_manager->setReverseTrack(false); // Use keyboard 0 by default (FIXME: let player choose?) InputDevice* device = input_manager->getDeviceList()->getKeyboard(0); diff --git a/src/states_screens/help_screen_1.cpp b/src/states_screens/help_screen_1.cpp index 20ac321d9..eac26e2ec 100644 --- a/src/states_screens/help_screen_1.cpp +++ b/src/states_screens/help_screen_1.cpp @@ -59,6 +59,7 @@ void HelpScreen1::eventCallback(Widget* widget, const std::string& name, const i race_manager->setNumKarts( 1 ); race_manager->setTrack( "tutorial" ); race_manager->setDifficulty(RaceManager::DIFFICULTY_EASY); + race_manager->setReverseTrack(false); // Use keyboard 0 by default (FIXME: let player choose?) InputDevice* device = input_manager->getDeviceList()->getKeyboard(0); diff --git a/src/states_screens/main_menu_screen.cpp b/src/states_screens/main_menu_screen.cpp index 2bbd7e606..9169e1000 100644 --- a/src/states_screens/main_menu_screen.cpp +++ b/src/states_screens/main_menu_screen.cpp @@ -308,6 +308,7 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name, race_manager->setNumKarts( 1 ); race_manager->setTrack( "tutorial" ); race_manager->setDifficulty(RaceManager::DIFFICULTY_EASY); + race_manager->setReverseTrack(false); // Use keyboard 0 by default (FIXME: let player choose?) InputDevice* device = input_manager->getDeviceList()->getKeyboard(0);