fix build from cherry-picks

This commit is contained in:
Evan
2025-03-11 16:04:10 -07:00
parent 5f0df80f57
commit de35f50e3b
2 changed files with 10 additions and 4 deletions
+7 -1
View File
@@ -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.",
+3 -3
View File
@@ -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 };
}
}