2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-28 07:35:47 +03:00

Netchan_FlushIncoming: Don't clear global buffer of incoming network messages (#896)

* Netchan_FlushIncoming: Fixed #888
Co-authored-by: Artem Golubikhin <WPMGPRoSToTeMa@users.noreply.github.com>
This commit is contained in:
Dmitry Novikov 2022-02-14 05:14:19 +07:00 committed by GitHub
parent 6d169b0119
commit 2f0a402f9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1389,8 +1389,13 @@ void Netchan_FlushIncoming(netchan_t *chan, int stream)
{
fragbuf_t *p, *n;
SZ_Clear(&net_message);
msg_readcount = 0;
#ifdef REHLDS_FIXES
if ((chan->player_slot - 1) == host_client - g_psvs.clients)
#endif
{
SZ_Clear(&net_message);
msg_readcount = 0;
}
p = chan->incomingbufs[stream];
while (p)