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
This commit is contained in:
Alug committed 2024-09-25 19:31:18 +02:00
1 parent bb6df8b4b8
commit 4297c1b80d
1 file changed
+2
+2
View File
@@ -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;
}
}