For now make sure challenges never use reverse mode (later it may become configurable, but reusing the value left over from previous race is bad)

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11153 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2012-04-25 19:59:25 +00:00
parent ef750af24e
commit b71cb6067e

View File

@ -156,6 +156,7 @@ GUIEngine::EventPropagation SelectChallengeDialog::processEvent(const std::strin
// Set up race manager appropriately // Set up race manager appropriately
race_manager->setNumLocalPlayers(1); race_manager->setNumLocalPlayers(1);
race_manager->setLocalKartInfo(0, UserConfigParams::m_default_kart); race_manager->setLocalKartInfo(0, UserConfigParams::m_default_kart);
race_manager->setReverseTrack(false);
//int id = StateManager::get()->createActivePlayer( unlock_manager->getCurrentPlayer(), device ); //int id = StateManager::get()->createActivePlayer( unlock_manager->getCurrentPlayer(), device );
input_manager->getDeviceList()->setSinglePlayer( StateManager::get()->getActivePlayer(0) ); input_manager->getDeviceList()->setSinglePlayer( StateManager::get()->getActivePlayer(0) );