2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-17 09:07:54 +03:00

Merge pull request #306 from s1lentq/fix_set_cstrike_flags

Fix #304
This commit is contained in:
theAsmodai 2017-01-07 20:00:04 +03:00 committed by GitHub
commit e68bb149fb
3 changed files with 6 additions and 4 deletions

View File

@ -219,10 +219,6 @@ 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,6 +699,10 @@ 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
SetCStrikeFlags();
#endif
return true;
}

View File

@ -29,6 +29,8 @@
#if defined(__GNUC__)
#include <cpuid.h>
#elif _MSC_VER >= 1400 && !defined(ASMLIB_H)
#include <intrin.h> // __cpuidex
#endif
#define SSE3_FLAG (1<<0)