mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-01 14:02:18 +02:00
Fix freezing after pressing new game without endless unlocked
This commit is contained in:
parent
90f6005603
commit
39667f3398
@ -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 }));
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user