mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: increase MAX_INIT_MSG to 192 kilobytes limit
* also avoid magic number in sv_client.c
This commit is contained in:
parent
bebfa611fc
commit
f633b3dbf6
@ -31,9 +31,9 @@ typedef enum
|
|||||||
|
|
||||||
|
|
||||||
#if !XASH_LOW_MEMORY
|
#if !XASH_LOW_MEMORY
|
||||||
#define MAX_INIT_MSG 0x20000 // max length of possible message
|
#define MAX_INIT_MSG 0x30000 // max length of possible message
|
||||||
#else
|
#else
|
||||||
#define MAX_INIT_MSG 0x8000
|
#define MAX_INIT_MSG 0x8000
|
||||||
#endif
|
#endif
|
||||||
// net packets type
|
// net packets type
|
||||||
#define NET_HEADER_OUTOFBANDPACKET -1
|
#define NET_HEADER_OUTOFBANDPACKET -1
|
||||||
|
@ -1316,7 +1316,7 @@ a deathmatch.
|
|||||||
*/
|
*/
|
||||||
void SV_PutClientInServer( sv_client_t *cl )
|
void SV_PutClientInServer( sv_client_t *cl )
|
||||||
{
|
{
|
||||||
static byte msg_buf[0x20200]; // MAX_INIT_MSG + some space
|
static byte msg_buf[MAX_INIT_MSG + 0x200]; // MAX_INIT_MSG + some space
|
||||||
edict_t *ent = cl->edict;
|
edict_t *ent = cl->edict;
|
||||||
sizebuf_t msg;
|
sizebuf_t msg;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user