Fix freezing after pressing new game without endless unlocked

pull/52/head
Flashfyre 2024-04-07 00:06:44 -04:00
parent 90f6005603
commit 39667f3398
1 changed files with 5 additions and 1 deletions

View File

@ -202,8 +202,12 @@ export class TitlePhase extends Phase {
}
});
this.scene.ui.showText('Select a game mode.', null, () => this.scene.ui.setOverlayMode(Mode.OPTION_SELECT, { options: options }));
} else
} else {
this.gameMode = GameModes.CLASSIC;
this.scene.ui.setMode(Mode.MESSAGE);
this.scene.ui.clearText();
this.end();
}
}
},
{