From d8da0a11a23988bfc629684632001c19a619b5d8 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 139817d1b..8165d6a1c 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -4246,6 +4246,7 @@ static void ResetNode(INT32 node) resendingsavegame[node] = false; can_receive_gamestate[node] = false; savegameresendcooldown[node] = 0; + gamestate_resend_counter[node] = 0; #endif // } @@ -5431,6 +5432,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; } }