Merge branch 'v28'

This commit is contained in:
evanpelle
2026-01-01 14:25:45 -08:00
38 changed files with 140 additions and 365 deletions
+4
View File
@@ -71,6 +71,8 @@ export class GameServer {
{ winner: ClientSendWinnerMessage; ips: Set<string> }
> = new Map();
public desyncCount = 0;
constructor(
public readonly id: string,
readonly log_: Logger,
@@ -831,6 +833,8 @@ export class GameServer {
const { mostCommonHash, outOfSyncClients } =
this.findOutOfSyncClients(lastHashTurn);
this.desyncCount += outOfSyncClients.length;
if (outOfSyncClients.length === 0) {
this.turns[lastHashTurn].hash = mostCommonHash;
return;