Removed unnecessary --with-profile command line option.
This commit is contained in:
11
src/main.cpp
11
src/main.cpp
@@ -521,7 +521,6 @@ void cmdLineHelp()
|
||||
" --profile-time=n Enable automatic driven profile mode for n "
|
||||
"seconds.\n"
|
||||
" --no-graphics Do not display the actual race.\n"
|
||||
" --with-profile Enables the profile mode.\n"
|
||||
" --demo-mode=t Enables demo mode after t seconds idle time in "
|
||||
"main menu.\n"
|
||||
" --demo-tracks=t1,t2 List of tracks to be used in demo mode. No\n"
|
||||
@@ -994,16 +993,6 @@ int handleCmdLine()
|
||||
race_manager->setNumLaps(999999); // profile end depends on time
|
||||
} // --profile-time
|
||||
|
||||
if(CommandLine::has("--with-profile") )
|
||||
{
|
||||
// Set default profile mode of 1 lap if we haven't already set one
|
||||
if (!ProfileWorld::isProfileMode()) {
|
||||
UserConfigParams::m_no_start_screen = true;
|
||||
ProfileWorld::setProfileModeLaps(1);
|
||||
race_manager->setNumLaps(1);
|
||||
}
|
||||
} // --with-profile
|
||||
|
||||
if(CommandLine::has("--history", &n))
|
||||
{
|
||||
history->doReplayHistory( (History::HistoryReplayMode)n);
|
||||
|
||||
Reference in New Issue
Block a user