mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-29 08:05:50 +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:
parent
6d169b0119
commit
2f0a402f9d
@ -1389,8 +1389,13 @@ void Netchan_FlushIncoming(netchan_t *chan, int stream)
|
|||||||
{
|
{
|
||||||
fragbuf_t *p, *n;
|
fragbuf_t *p, *n;
|
||||||
|
|
||||||
|
#ifdef REHLDS_FIXES
|
||||||
|
if ((chan->player_slot - 1) == host_client - g_psvs.clients)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
SZ_Clear(&net_message);
|
SZ_Clear(&net_message);
|
||||||
msg_readcount = 0;
|
msg_readcount = 0;
|
||||||
|
}
|
||||||
|
|
||||||
p = chan->incomingbufs[stream];
|
p = chan->incomingbufs[stream];
|
||||||
while (p)
|
while (p)
|
||||||
|
Loading…
Reference in New Issue
Block a user