Accept --difficulty as well as --mode.
This commit is contained in:
parent
267e6963c2
commit
da848a4c72
@ -848,7 +848,7 @@ int handleCmdLine()
|
|||||||
race_manager->setNumKarts((int)l.size()+1);
|
race_manager->setNumKarts((int)l.size()+1);
|
||||||
} // --ai
|
} // --ai
|
||||||
|
|
||||||
if(CommandLine::has( "--mode", &s))
|
if(CommandLine::has( "--mode", &s) || CommandLine::has( "--difficulty", &s))
|
||||||
{
|
{
|
||||||
int n = atoi(s.c_str());
|
int n = atoi(s.c_str());
|
||||||
if(n<0 || n>RaceManager::DIFFICULTY_LAST)
|
if(n<0 || n>RaceManager::DIFFICULTY_LAST)
|
||||||
|
Loading…
Reference in New Issue
Block a user