diff --git a/src/client/ClientGameRunner.ts b/src/client/ClientGameRunner.ts index 50992f4ee..054214f71 100644 --- a/src/client/ClientGameRunner.ts +++ b/src/client/ClientGameRunner.ts @@ -176,7 +176,12 @@ export class ClientGameRunner { this.input.initialize(); this.worker.start((gu: GameUpdateViewData | ErrorUpdate) => { if ("errMsg" in gu) { - showErrorModal(gu.errMsg, gu.stack, this.lobby.clientID); + showErrorModal( + gu.errMsg, + gu.stack, + this.lobby.gameID, + this.lobby.clientID, + ); return; } gu.updates[GameUpdateType.Hash].forEach((hu: HashUpdate) => { @@ -220,6 +225,7 @@ export class ClientGameRunner { showErrorModal( `desync from server: ${JSON.stringify(message)}`, "", + this.lobby.gameID, this.lobby.clientID, true, "You are desynced from other players. What you see might differ from other players.", diff --git a/src/core/game/StatsImpl.ts b/src/core/game/StatsImpl.ts index 44752e6d3..243d9ce47 100644 --- a/src/core/game/StatsImpl.ts +++ b/src/core/game/StatsImpl.ts @@ -15,11 +15,11 @@ export class StatsImpl implements Stats { } if (!this.data[sender].sentNukes[target]) { this.data[sender].sentNukes[target] = { - [UnitType.MIRV]: 0, - [UnitType.MIRVWarhead]: 0, [UnitType.AtomBomb]: 0, [UnitType.HydrogenBomb]: 0, - }; + [UnitType.MIRV]: 0, + [UnitType.MIRVWarhead]: 0, + } as { [key in NukeType]: number }; } }