mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +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:
parent
2aae757eff
commit
dd17e8120d
1 changed files with 1 additions and 0 deletions
|
@ -381,6 +381,7 @@ qtv_reliable_send (sv_qtv_t *proxy)
|
||||||
byte *buf = 0;
|
byte *buf = 0;
|
||||||
|
|
||||||
SV_Printf ("proxy->begun: %d\n", proxy->begun);
|
SV_Printf ("proxy->begun: %d\n", proxy->begun);
|
||||||
|
SZ_Clear (&proxy->netchan.message);
|
||||||
if (!proxy->begun) {
|
if (!proxy->begun) {
|
||||||
MSG_WriteByte (&proxy->netchan.message, qtv_packet);
|
MSG_WriteByte (&proxy->netchan.message, qtv_packet);
|
||||||
pos = proxy->netchan.message.cursize;
|
pos = proxy->netchan.message.cursize;
|
||||||
|
|
Loading…
Reference in a new issue