Fix freezing after pressing new game without endless unlocked
This commit is contained in:
1 parent
90f6005603
commit
39667f3398
1 file changed
+5
-1
+5
-1
@@ -202,9 +202,13 @@ export class TitlePhase extends Phase {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.scene.ui.showText('Select a game mode.', null, () => this.scene.ui.setOverlayMode(Mode.OPTION_SELECT, { options: options }));
|
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();
|
this.end();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Load Game',
|
label: 'Load Game',
|
||||||
|
|||||||
Reference in new issue
Block a user