The dedicated server command line can now start a scenario

I don't know how useful that is without control over other options, but at
least its something instead of nothing.
floating-point
Günther Brammer 2012-11-30 22:16:21 +01:00
parent a1589a48b6
commit d9c3c1d713
1 changed files with 5 additions and 1 deletions

View File

@ -744,9 +744,13 @@ bool C4Application::SetGameFont(const char *szFontFace, int32_t iFontSize)
void C4Application::OnCommand(const char *szCmd)
{
// reroute to whatever seems to take commands at the moment
if (AppState == C4AS_Game)
::MessageInput.ProcessInput(szCmd);
else if (AppState == C4AS_Startup)
{
AppState = C4AS_PreInit;
Game.SetScenarioFilename(szCmd);
}
}
void C4Application::Activate()