From: terencehill Date: Fri, 8 May 2020 22:16:15 +0000 (+0200) Subject: Increase response buffer to allow listing more players X-Git-Tag: xonotic-v0.8.6~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1d7fd4d72503aa1c8b6473cba0505373c15ac80e;p=xonotic%2Fdarkplaces.git Increase response buffer to allow listing more players Signed-off-by: bones_was_here --- diff --git a/netconn.c b/netconn.c index cfabd287..56e6e467 100755 --- a/netconn.c +++ b/netconn.c @@ -2940,7 +2940,7 @@ static int NetConn_ServerParsePacket(lhnetsocket_t *mysocket, unsigned char *dat { int i, ret, clientnum, best; double besttime; - char *string, response[1400], addressstring2[128]; + char *string, response[2800], addressstring2[128]; static char stringbuf[16384]; // server only qboolean islocal = (LHNETADDRESS_GetAddressType(peeraddress) == LHNETADDRESSTYPE_LOOP); char senddata[NET_HEADERSIZE+NET_MAXMESSAGE+CRYPTO_HEADERSIZE]; diff --git a/netconn.h b/netconn.h index 7341359e..82557bd5 100755 --- a/netconn.h +++ b/netconn.h @@ -282,7 +282,7 @@ typedef struct serverlist_info_s /// qc-defined short status string char qcstatus[128]; /// frags/ping/name list (if they fit in the packet) - char players[1400]; + char players[2800]; /// max client number int maxplayers; /// number of currently connected players (including bots)