Fixed --track command line option.
This commit is contained in:
parent
5eb447d3e6
commit
9e44c5980a
11
src/main.cpp
11
src/main.cpp
@ -418,17 +418,10 @@ void setupRaceStart()
|
|||||||
race_manager->setLocalKartInfo(0, UserConfigParams::m_default_kart);
|
race_manager->setLocalKartInfo(0, UserConfigParams::m_default_kart);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!track_manager->getTrack(UserConfigParams::m_last_track))
|
|
||||||
{
|
|
||||||
race_manager->setTrack("jungle");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
race_manager->setTrack(UserConfigParams::m_last_track);
|
|
||||||
|
|
||||||
// ASSIGN should make sure that only input from assigned devices
|
// ASSIGN should make sure that only input from assigned devices
|
||||||
// is read.
|
// is read.
|
||||||
input_manager->getDeviceList()->setAssignMode(ASSIGN);
|
input_manager->getDeviceList()->setAssignMode(ASSIGN);
|
||||||
} // setupRaceMode
|
} // setupRaceStart
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/** Prints help for command line options to stdout.
|
/** Prints help for command line options to stdout.
|
||||||
@ -1118,6 +1111,8 @@ void initRest()
|
|||||||
race_manager->setMinorMode (RaceManager::MINOR_MODE_NORMAL_RACE);
|
race_manager->setMinorMode (RaceManager::MINOR_MODE_NORMAL_RACE);
|
||||||
race_manager->setDifficulty(
|
race_manager->setDifficulty(
|
||||||
(RaceManager::Difficulty)(int)UserConfigParams::m_difficulty);
|
(RaceManager::Difficulty)(int)UserConfigParams::m_difficulty);
|
||||||
|
if(track_manager->getTrack(UserConfigParams::m_last_track))
|
||||||
|
race_manager->setTrack(UserConfigParams::m_last_track);
|
||||||
|
|
||||||
} // initRest
|
} // initRest
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user