From 4297c1b80daf478542cb0b415206f3e115e7164a Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 25 Sep 2024 19:31:07 +0200 Subject: [PATCH] gamestate resend counter was never proper reset for nodes means it would carry over to the next person occupieing that node and made them have less chances to get the gamestate resent --- src/d_clisrv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 3ac3631de..b5f24ff14 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -4128,6 +4128,7 @@ static void ResetNode(INT32 node) resendingsavegame[node] = false; can_receive_gamestate[node] = false; savegameresendcooldown[node] = 0; + gamestate_resend_counter[node] = 0; #endif // } @@ -5313,6 +5314,7 @@ static void HandlePacketFromPlayer(SINT8 node) DEBFILE(va("player %d kicked (synch failure) [%u] %d!=%d\n", netconsole, realstart, consistancy[realstart%TICQUEUE], SHORT(netbuffer->u.clientpak.consistancy))); + gamestate_resend_counter[node] = 0 break; } }