mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-25 03:02:44 +00:00
fix build from cherry-picks
This commit is contained in:
@@ -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.",
|
||||
|
||||
@@ -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 };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user