Add checks to initial title data load to prevent softlocks
parent
69f9692bcd
commit
7f01d3f57b
|
@ -151,15 +151,18 @@ export class TitlePhase extends Phase {
|
||||||
this.scene.arenaBg.setTexture(bgTexture);
|
this.scene.arenaBg.setTexture(bgTexture);
|
||||||
}
|
}
|
||||||
this.showOptions();
|
this.showOptions();
|
||||||
|
}).catch(err => {
|
||||||
|
console.error(err);
|
||||||
|
this.showOptions();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
showOptions(): void {
|
showOptions(): void {
|
||||||
const options: OptionSelectItem[] = [];
|
const options: OptionSelectItem[] = [];
|
||||||
if (this.lastSessionData) {
|
if (loggedInUser.lastSessionSlot > -1) {
|
||||||
options.push({
|
options.push({
|
||||||
label: 'Continue',
|
label: 'Continue',
|
||||||
handler: () => this.loadSaveSlot(-1)
|
handler: () => this.loadSaveSlot(this.lastSessionData ? -1 : loggedInUser.lastSessionSlot)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
options.push({
|
options.push({
|
||||||
|
|
Loading…
Reference in New Issue