Make sure that --history (and other options that immediately cause

a race to start) work properly without having to specify -N.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10787 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2012-02-02 05:18:59 +00:00
parent a44bee360d
commit 8dd5b8461c

View File

@ -869,7 +869,6 @@ int handleCmdLine(int argc, char **argv)
|| !strcmp(argv[i], "-N") )
{
UserConfigParams::m_no_start_screen = true;
unlock_manager->setCurrentSlot(UserConfigParams::m_all_players[0].getName());
}
else if ( !strcmp(argv[i], "--race-now")
|| !strcmp(argv[i], "-R") )
@ -960,6 +959,9 @@ int handleCmdLine(int argc, char **argv)
return 0;
}
} // for i <argc
if(UserConfigParams::m_no_start_screen)
unlock_manager->setCurrentSlot(UserConfigParams::m_all_players[0]
.getName() );
if(ProfileWorld::isProfileMode())
{
UserConfigParams::m_sfx = false; // Disable sound effects