From db40c946ba3d096e7257fedc6b73c07eebab4b43 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 20 Aug 2021 20:09:35 -0300 Subject: Override main_menu variable to prevent a crash when accessing prefs at register --- game/screens.rpy | 2 +- game/script.rpy | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/game/screens.rpy b/game/screens.rpy index bc1f9cd..f5ffd9e 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -401,7 +401,7 @@ screen navigation(): textbutton _("Help") action ShowMenu("help") - if not (main_menu or story_mode or hud_interface): + if not (main_menu or story_mode or hud_interface): # FIXME if Player["quest"] >= 5: textbutton _("Summons") action ShowMenu("sumconf") diff --git a/game/script.rpy b/game/script.rpy index 5f548c5..353e582 100644 --- a/game/script.rpy +++ b/game/script.rpy @@ -45,6 +45,7 @@ label start: # Check if we need to register if persistent.password is None: + $ main_menu = True call screen welcome return @@ -129,6 +130,7 @@ label login: ## If you just registered, go to prologue if (email): + $ main_menu = False $ del email jump prologue -- cgit v1.2.3-60-g2f50