diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-08-20 20:09:35 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-08-20 20:09:35 -0300 |
commit | db40c946ba3d096e7257fedc6b73c07eebab4b43 (patch) | |
tree | b2558f756e18976acc8a0e345a9713a94963fecb /game | |
parent | a878b43f3c44a4b604c291688b7d108e790370c6 (diff) | |
download | client-db40c946ba3d096e7257fedc6b73c07eebab4b43.tar.gz client-db40c946ba3d096e7257fedc6b73c07eebab4b43.tar.bz2 client-db40c946ba3d096e7257fedc6b73c07eebab4b43.tar.xz client-db40c946ba3d096e7257fedc6b73c07eebab4b43.zip |
Override main_menu variable to prevent a crash when accessing prefs at register
Diffstat (limited to 'game')
-rw-r--r-- | game/screens.rpy | 2 | ||||
-rw-r--r-- | game/script.rpy | 2 |
2 files changed, 3 insertions, 1 deletions
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 |