mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: move out MAX_CLIENTS definition
This commit is contained in:
@@ -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 )))
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user