fix: resolve build errors related to NukeWars

This commit is contained in:
Restart2008
2025-10-28 18:14:39 -07:00
parent 0c04cf9540
commit f6cc02f852
2 changed files with 10 additions and 3 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import { EventBus } from "../../core/EventBus";
import { GameView } from "../../core/game/GameView";
import { GameMode, TeamGameType } from "../../core/game/Game";
import { GameView } from "../../core/game/GameView";
import { UserSettings } from "../../core/game/UserSettings";
import { GameStartingModal } from "../GameStartingModal";
import { RefreshGraphicsEvent as RedrawGraphicsEvent } from "../InputHandler";
import { TransformHandler } from "./TransformHandler";
+8 -2
View File
@@ -3,7 +3,12 @@ import { Logger } from "winston";
import WebSocket from "ws";
import { z } from "zod";
import { GameEnv, ServerConfig } from "../core/configuration/Config";
import { GameMapType, GameMode, GameType } from "../core/game/Game";
import {
GameMapType,
GameMode,
GameType,
TeamGameType,
} from "../core/game/Game";
import {
ClientID,
ClientMessageSchema,
@@ -130,7 +135,8 @@ export class GameServer {
// Enforce Nuke Wars only on Baikal at server side.
try {
if (
this.gameConfig.gameMode === GameMode.NukeWars &&
this.gameConfig.gameMode === GameMode.Team &&
this.gameConfig.teamGameType === TeamGameType.NukeWars &&
this.gameConfig.gameMap !== GameMapType.Baikal
) {
this.log.warn(