Accept --difficulty as well as --mode.

This commit is contained in:
hiker 2015-08-31 17:09:51 +10:00
parent 267e6963c2
commit da848a4c72

View File

@ -848,7 +848,7 @@ int handleCmdLine()
race_manager->setNumKarts((int)l.size()+1);
} // --ai
if(CommandLine::has( "--mode", &s))
if(CommandLine::has( "--mode", &s) || CommandLine::has( "--difficulty", &s))
{
int n = atoi(s.c_str());
if(n<0 || n>RaceManager::DIFFICULTY_LAST)