mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 22:05:21 +00:00
src/server/GameManager.ts
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user