Move SetCStrikeFlags() from Init_noVirt to Host_InitializeGameDLL

This commit is contained in:
In-line 2017-01-06 21:43:00 +04:00
parent 2ab8b1f884
commit 8ec7639995
2 changed files with 4 additions and 3 deletions

View File

@ -219,6 +219,10 @@ void Host_InitializeGameDLL(void)
SV_CheckBlendingInterface();
SV_CheckSaveGameCommentInterface();
Cbuf_Execute();
#ifdef REHLDS_FIXES // DONE: Set cstrike flags on server start
SetCStrikeFlags();
#endif
}
void Host_Motd_f(void)

View File

@ -699,9 +699,6 @@ bool CDedicatedServerAPI::Init_noVirt(char *basedir, char *cmdline, CreateInterf
Q_snprintf(text, ARRAYSIZE(text), "exec %s\n", servercfgfile.string);
text[255] = 0;
Cbuf_InsertText(text);
#ifdef REHLDS_FIXES // DONE: Set cstrike flags on server start
SetCStrikeFlags();
#endif
return true;
}