From 8ec76399957047a746f0328d747e2aa99ccad3d1 Mon Sep 17 00:00:00 2001 From: In-line Date: Fri, 6 Jan 2017 21:43:00 +0400 Subject: [PATCH] Move SetCStrikeFlags() from Init_noVirt to Host_InitializeGameDLL --- rehlds/engine/host_cmd.cpp | 4 ++++ rehlds/engine/sys_dll2.cpp | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/rehlds/engine/host_cmd.cpp b/rehlds/engine/host_cmd.cpp index 3bf96c6..4bd29a1 100644 --- a/rehlds/engine/host_cmd.cpp +++ b/rehlds/engine/host_cmd.cpp @@ -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) diff --git a/rehlds/engine/sys_dll2.cpp b/rehlds/engine/sys_dll2.cpp index a0fccc4..5427499 100644 --- a/rehlds/engine/sys_dll2.cpp +++ b/rehlds/engine/sys_dll2.cpp @@ -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; }