Fix the --cutscene=<cutscene> commandline flag (#2861)

If the menu is shown, there's this ugly purple background (the OpenGL default, I think) and the cutscene won't play.
This commit is contained in:
Matthew Trescott 2017-06-17 18:49:00 -04:00 committed by auriamg
parent cfc506d0cf
commit 1d8a709e38

View File

@ -1162,6 +1162,7 @@ int handleCmdLine()
// used only for debugging/testing
if (CommandLine::has("--cutscene", &s))
{
UserConfigParams::m_no_start_screen = true; // Purple menu background otherwise
race_manager->setTrack(s);
StateManager::get()->enterGameState();
race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE);