forked from Mirrors/openclonk
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
parent
d5d72344ef
commit
b05aac2a79
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue