Remove skipcompile when -play is used.

This commit is contained in:
Jean-Baptiste Perrier
2021-05-23 19:32:45 +02:00
parent 566756ecf2
commit ce3caede6c

View File

@@ -518,12 +518,6 @@ bool Editor::Init()
exit(failed ? 1 : 0);
return true;
}
// Skip compilation if play on start
if (CommandLine::Options.Game.HasValue())
{
CommandLine::Options.SkipCompile.SetValue(true);
}
// If during last lightmaps baking engine crashed we could try to restore the progress
ShadowsOfMordor::Builder::Instance()->CheckIfRestoreState();
@@ -541,7 +535,7 @@ bool Editor::Init()
Managed->Init();
// Start play if requested by cmd line
if (CommandLine::Options.Game.HasValue())
if (CommandLine::Options.Play.HasValue())
{
Managed->RequestStartPlayOnEditMode();
}