Ignore client joins while loading a level, to prevent a myriad of join bugs.

Slightly rewritten from Jugador's, to prevent spurious DEBFILE prints of unknown packet type
This commit is contained in:
toaster 2022-09-07 13:50:26 +01:00
parent 925e05a8a0
commit 54e03194ea

View file

@ -4646,7 +4646,10 @@ static void GetPackets(void)
if (netbuffer->packettype == PT_CLIENTJOIN && server)
{
HandleConnect(node);
if (!levelloading) // Otherwise just ignore
{
HandleConnect(node);
}
continue;
}
if (node == servernode && client && cl_mode != CL_SEARCHING)