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.
stable-5.3
Günther Brammer 2012-11-30 22:16:21 +01:00
parent d5d72344ef
commit b05aac2a79
1 changed files with 5 additions and 1 deletions

View File

@ -756,9 +756,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()