engine: move out MAX_CLIENTS definition

This commit is contained in:
Alibek Omarov
2026-06-06 02:50:30 +05:00
parent a8de8cf5e6
commit f155005bb1
2 changed files with 4 additions and 3 deletions

View File

@@ -16,6 +16,10 @@
#define CS_SIZE 64 // size of one config string #define CS_SIZE 64 // size of one config string
#define CS_TIME 16 // size of time string #define CS_TIME 16 // size of time string
// FIXME: find better place for the shared definition
#define MAX_CLIENT_BITS 5
#define MAX_CLIENTS (1<<MAX_CLIENT_BITS)// 5 bits == 32 clients ( int32 limit )
// platform-specific alignment for types, to not break ABI // platform-specific alignment for types, to not break ABI
#if XASH_PSP #if XASH_PSP
#define MAYBE_ALIGNED( x ) __attribute__(( aligned( 16 ))) #define MAYBE_ALIGNED( x ) __attribute__(( aligned( 16 )))

View File

@@ -100,9 +100,6 @@ GNU General Public License for more details.
#define MAX_VISIBLE_PACKET_VIS_BYTES ((MAX_VISIBLE_PACKET + 7) / 8) #define MAX_VISIBLE_PACKET_VIS_BYTES ((MAX_VISIBLE_PACKET + 7) / 8)
// additional protocol data // additional protocol data
#define MAX_CLIENT_BITS 5
#define MAX_CLIENTS (1<<MAX_CLIENT_BITS)// 5 bits == 32 clients ( int32 limit )
#define MAX_WEAPON_BITS 6 #define MAX_WEAPON_BITS 6
#define MAX_WEAPONS (1<<MAX_WEAPON_BITS)// 6 bits == 64 predictable weapons #define MAX_WEAPONS (1<<MAX_WEAPON_BITS)// 6 bits == 64 predictable weapons