0
0
Fork 0
mirror of https://git.code.sf.net/p/quake/quakeforge synced 2025-03-22 18:31:27 +00:00

[qw] Clear qtv message buf before writing

I'm not sure this is the right place, but it prevents the packet
overflowing when a qtv proxy connects to a busy server (12+ bots).
This commit is contained in:
Bill Currie 2021-12-27 22:55:29 +09:00
parent 2aae757eff
commit dd17e8120d

View file

@ -381,6 +381,7 @@ qtv_reliable_send (sv_qtv_t *proxy)
byte *buf = 0;
SV_Printf ("proxy->begun: %d\n", proxy->begun);
SZ_Clear (&proxy->netchan.message);
if (!proxy->begun) {
MSG_WriteByte (&proxy->netchan.message, qtv_packet);
pos = proxy->netchan.message.cursize;