mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
Don't spam Dropped packet messages for disconnected players
This commit is contained in:
parent
d6b8603cb6
commit
0cbb3132e6
1 changed files with 5 additions and 1 deletions
|
@ -319,7 +319,11 @@ void PacketGet (void)
|
||||||
}
|
}
|
||||||
else if (c > 0)
|
else if (c > 0)
|
||||||
{ //The packet is not from any in-game node, so we might as well discard it.
|
{ //The packet is not from any in-game node, so we might as well discard it.
|
||||||
Printf("Dropped packet: Unknown host (%s:%d)\n", inet_ntoa(fromaddress.sin_addr), fromaddress.sin_port);
|
// Don't show the message for disconnect notifications.
|
||||||
|
if (c != 2 || TransmitBuffer[0] != PRE_FAKE || TransmitBuffer[1] != PRE_DISCONNECT)
|
||||||
|
{
|
||||||
|
DPrintf("Dropped packet: Unknown host (%s:%d)\n", inet_ntoa(fromaddress.sin_addr), fromaddress.sin_port);
|
||||||
|
}
|
||||||
doomcom.remotenode = -1;
|
doomcom.remotenode = -1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue