Skip to content

Commit

Permalink
HwDLL: server_static_t has been moved to a separately created header …
Browse files Browse the repository at this point in the history
…in HLSDK directory
  • Loading branch information
SmileyAG authored and YaLTeR committed Jul 27, 2024
1 parent c1db76c commit 2c06fda
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
16 changes: 0 additions & 16 deletions BunnymodXT/modules/HwDLL.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {};
Expand Down
1 change: 1 addition & 0 deletions BunnymodXT/stdafx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
20 changes: 20 additions & 0 deletions HLSDK/engine/server_static.h
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2c06fda

Please sign in to comment.