diff --git a/src/core/GameRunner.ts b/src/core/GameRunner.ts index 416b084c7..7e6a12eb1 100644 --- a/src/core/GameRunner.ts +++ b/src/core/GameRunner.ts @@ -181,10 +181,6 @@ export class GameRunner { return true; } - public pendingTurns(): number { - return Math.max(0, this.turns.length - this.currTurn); - } - public playerActions( playerID: PlayerID, x?: number, @@ -268,8 +264,4 @@ export class GameRunner { } return player.bestTransportShipSpawn(targetTile); } - - public hasPendingTurns(): boolean { - return this.currTurn < this.turns.length; - } } diff --git a/src/core/worker/Worker.worker.ts b/src/core/worker/Worker.worker.ts index d89ac03bb..41500b5e7 100644 --- a/src/core/worker/Worker.worker.ts +++ b/src/core/worker/Worker.worker.ts @@ -42,7 +42,7 @@ async function processPendingTurns() { } const gr = await gameRunner; - if (!gr || !gr.hasPendingTurns()) { + if (!gr) { return; }