From 7090cf16b408424734e6a7f075fa898088420a39 Mon Sep 17 00:00:00 2001 From: fickleheart Date: Tue, 26 Mar 2019 01:36:12 -0500 Subject: [PATCH] Unclose a node if it sends PT_CLIENTJOIN..? fuck it, why not --- src/d_clisrv.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 31f73d78..7ed98e40 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -1374,6 +1374,8 @@ static boolean CL_SendJoin(void) netbuffer->u.clientcfg.challengenum = cl_challengenum; memcpy(netbuffer->u.clientcfg.challengeanswer, cl_challengeanswer, MD5_LEN); + nodes[servernode].flags &= ~NF_CLOSE; // Hell if I know. + return HSendPacket(servernode, true, 0, sizeof (clientconfig_pak)); } @@ -3830,6 +3832,9 @@ static void HandleConnect(SINT8 node) } } + // The connecting node may be + nodes[node].flags &= ~NF_CLOSE; + if (netbuffer->u.clientcfg.needsdownload) { netbuffer->packettype = PT_DOWNLOADFILESOKAY;