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.floating-point
parent
a1589a48b6
commit
d9c3c1d713
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue