Merge branch 'main' into lobby

This commit is contained in:
Restart2008
2025-12-26 14:17:32 -08:00
committed by GitHub
75 changed files with 2898 additions and 1146 deletions
+12 -1
View File
@@ -329,6 +329,7 @@ export class ClientGameRunner {
this.saveGame(gu.updates[GameUpdateType.Win][0]);
}
});
const worker = this.worker;
const keepWorkerAlive = () => {
if (this.isActive) {
@@ -433,7 +434,17 @@ export class ClientGameRunner {
`got wrong turn have turns ${this.turnsSeen}, received turn ${message.turn.turnNumber}`,
);
} else {
this.worker.sendTurn(message.turn);
this.worker.sendTurn(
// Filter out pause intents in replays
this.gameView.config().isReplay()
? {
...message.turn,
intents: message.turn.intents.filter(
(i) => i.type !== "toggle_pause",
),
}
: message.turn,
);
this.turnsSeen++;
}
}