diff --git a/BunnymodXT/modules/HwDLL.hpp b/BunnymodXT/modules/HwDLL.hpp index 4b080dba..f62243b4 100644 --- a/BunnymodXT/modules/HwDLL.hpp +++ b/BunnymodXT/modules/HwDLL.hpp @@ -88,22 +88,6 @@ class HwDLL : public IHookableNameFilterOrdered HOOK_DECL(qboolean, __cdecl, CL_ReadDemoMessage_OLD) HOOK_DECL(void, __cdecl, LoadThisDll, const char* szDllFilename) - #ifdef HLSDK10_BUILD - struct server_static_t - { - int maxclients; - byte align[28684]; - client_t *clients; - }; - #else - struct server_static_t - { - int dll_initialized; - client_t *clients; - int maxclients; - }; - #endif - struct Key { Key(const char* name) : State(0), Name(name) {}; diff --git a/BunnymodXT/stdafx.hpp b/BunnymodXT/stdafx.hpp index b297201c..be0e43f4 100644 --- a/BunnymodXT/stdafx.hpp +++ b/BunnymodXT/stdafx.hpp @@ -87,6 +87,7 @@ using std::ptrdiff_t; #include "HLSDK/pm_shared/pm_defs.h" #include "HLSDK/engine/usermsg.h" +#include "HLSDK/engine/server_static.h" #include "HLSDK/engine/cdll_int.h" #include "HLSDK/engine/client.h" diff --git a/HLSDK/engine/server_static.h b/HLSDK/engine/server_static.h new file mode 100644 index 00000000..10230cac --- /dev/null +++ b/HLSDK/engine/server_static.h @@ -0,0 +1,20 @@ +#if !defined( SERVER_STATIC_H ) +#define SERVER_STATIC_H + +#ifdef HLSDK10_BUILD +struct server_static_t +{ + int maxclients; + byte align[28684]; + struct client_t *clients; +}; +#else +struct server_static_t +{ + int dll_initialized; + struct client_t *clients; + int maxclients; +}; +#endif + +#endif \ No newline at end of file