From 4df361d5b11ac15e6eb0df6ff2206f246b6d005d Mon Sep 17 00:00:00 2001 From: Scott Anderson <662325+scottanderson@users.noreply.github.com> Date: Wed, 14 May 2025 01:53:16 -0400 Subject: [PATCH] src/core/configuration/DefaultConfig.ts --- src/core/configuration/DefaultConfig.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index 0f6facdc1..d3ab3a2df 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -159,13 +159,13 @@ export abstract class DefaultServerConfig implements ServerConfig { return Math.random() < 0.5 ? 30 : 15; } // world belongs with the ~2 mils, but these amounts never made sense so I assume the insanity is intended. - if (map == GameMapType.World) { + if (map === GameMapType.World) { return Math.random() < 0.2 ? 150 : 50; } // default return for non specified map return Math.random() < 0.2 ? 50 : 20; }; - return Math.min(150, numPlayers() * (mode == GameMode.Team ? 2 : 1)); + return Math.min(150, numPlayers() * (mode === GameMode.Team ? 2 : 1)); } workerIndex(gameID: GameID): number {