From ffc09e14446fb938e727d58c127d5c6d17d22375 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 19 Sep 2024 16:01:32 +0200 Subject: fix constant resetting of hints and setup --- client/global.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/global.gd') diff --git a/client/global.gd b/client/global.gd index 59cc91de..b678f391 100644 --- a/client/global.gd +++ b/client/global.gd @@ -169,7 +169,6 @@ func set_profile(key: String, value): return if profile[key] != value: profile[key] = value - save_profile() func set_hint(key: String, value: bool): if !profile["hints"].has(key): @@ -177,8 +176,9 @@ func set_hint(key: String, value: bool): if profile["hints"][key] != value: if value: set_setting("tutorial_started", true) + save_settings() profile["hints"][key] = value - save_profile() + save_profile() # TODO avoid this call when bulk-unsetting hints func get_hint(key: String): if profile["hints"].has(key): -- cgit v1.2.3-70-g09d2