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:25 +02:00
1 parent d5c3332635
commit d8da0a11a2
1 file changed
+2
+2
View File
@@ -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;
}
}