src/server/GameManager.ts

This commit is contained in:
Scott Anderson
2025-05-14 01:56:15 -04:00
parent 75e28f944f
commit a930a8c231
+2 -2
View File
@@ -62,7 +62,7 @@ export class GameManager {
const active = new Map<GameID, GameServer>();
for (const [id, game] of this.games) {
const phase = game.phase();
if (phase == GamePhase.Active) {
if (phase === GamePhase.Active) {
if (!game.hasStarted()) {
// Prestart tells clients to start loading the game.
game.prestart();
@@ -77,7 +77,7 @@ export class GameManager {
}
}
if (phase == GamePhase.Finished) {
if (phase === GamePhase.Finished) {
try {
game.end();
} catch (error) {