try to prevent unknown packet type spam when client attempt to connect while levelloading

This commit is contained in:
Alug committed 2024-09-22 16:53:31 +02:00
1 parent c14af4a136
commit 0bd9c696df
1 file changed
+5 -2
+5 -2
View File
@@ -5793,9 +5793,12 @@ static void GetPackets(void)
{
node = (SINT8)doomcom->remotenode;
if (netbuffer->packettype == PT_CLIENTJOIN && server && !levelloading)
if (netbuffer->packettype == PT_CLIENTJOIN && server)
{
HandleConnect(node);
if (!levelloading) // Otherwise just ignore
{
HandleConnect(node);
}
continue;
}
if (node == servernode && client && cl_mode != CL_SEARCHING)