Browse Source

engine: increase MAX_INIT_MSG to 192 kilobytes limit

* also avoid magic number in sv_client.c
pull/2/head
Alibek Omarov 2 years ago
parent
commit
f633b3dbf6
  1. 2
      engine/common/net_ws.h
  2. 2
      engine/server/sv_client.c

2
engine/common/net_ws.h

@ -31,7 +31,7 @@ typedef enum @@ -31,7 +31,7 @@ typedef enum
#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
#define MAX_INIT_MSG 0x8000
#endif

2
engine/server/sv_client.c

@ -1316,7 +1316,7 @@ a deathmatch. @@ -1316,7 +1316,7 @@ a deathmatch.
*/
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;
sizebuf_t msg;

Loading…
Cancel
Save