mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-01-31 12:40:43 +00:00
qq moaned about this
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2729 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
a3c5e9068a
commit
5dec885e38
3 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@ void CheckMVDConsistancy(unsigned char *buffer, int pos, int size)
|
|||
pos+=4;
|
||||
length = (IN(pos+0)<<0) + (IN(pos+1)<<8) + (IN(pos+2)<<16) + (IN(pos+3)<<24);
|
||||
pos+=4;
|
||||
if (length > 1450)
|
||||
if (length > MAX_MSGLEN)
|
||||
printf("too big (%i)\n", length);
|
||||
pos += length;
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
//limits
|
||||
#define NQ_PACKETS_PER_SECOND 20
|
||||
#define MAX_NQMSGLEN 8000
|
||||
#define MAX_MSGLEN 1400
|
||||
#define MAX_MSGLEN 1450
|
||||
#define MAX_NQDATAGRAM 1024
|
||||
#define MAX_BACKBUF_SIZE 1000 //this is smaller so we don't loose entities when lagging
|
||||
|
||||
|
|
|
@ -948,7 +948,7 @@ void NewQWClient(cluster_t *cluster, netadr_t *addr, char *connectmessage)
|
|||
memset(viewer, 0, sizeof(viewer_t));
|
||||
|
||||
Netchan_Setup (cluster->qwdsocket, &viewer->netchan, *addr, atoi(qport), false);
|
||||
viewer->netchan.message.maxsize = 1400;
|
||||
viewer->netchan.message.maxsize = 1450;
|
||||
|
||||
viewer->next = cluster->viewers;
|
||||
cluster->viewers = viewer;
|
||||
|
|
Loading…
Reference in a new issue