diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-07 11:38:13 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-07 11:38:13 +0200 |
commit | 66eb933df271eaca4df6201c55bb678275abf9df (patch) | |
tree | eabb509b1612f8ddf6b5f53b73b3e3fd5692a7f1 /client/global.gd | |
parent | 7f559afc6307d628ca56de175486323d587d71a8 (diff) | |
download | hurrycurry-66eb933df271eaca4df6201c55bb678275abf9df.tar hurrycurry-66eb933df271eaca4df6201c55bb678275abf9df.tar.bz2 hurrycurry-66eb933df271eaca4df6201c55bb678275abf9df.tar.zst |
fix remaining settings
Diffstat (limited to 'client/global.gd')
-rw-r--r-- | client/global.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/global.gd b/client/global.gd index 6d41dc31..47d9da06 100644 --- a/client/global.gd +++ b/client/global.gd @@ -83,7 +83,7 @@ func _input(event): using_joypad_change.emit(using_joypad) # Update using_touch variable - if get_setting("ui.touch_controls") == 0: # Only if set to automatic + if get_setting("ui.touch_controls") == "automatic": # Only if set to automatic if event is InputEventScreenTouch or event is InputEventScreenDrag: if not using_touch: using_touch = true @@ -143,7 +143,7 @@ func get_setting(key: String): func set_setting_unchecked(key: String, value): value = value.duplicate(true) if value is Array else value - if key in settings and settings[key] == value: return + if key in settings and typeof(settings[key]) == typeof(value) and settings[key] == value: return settings[key] = value if Settings.change_hooks_display.get(key) != null: Settings.change_hooks_display.get(key).call(value) if Settings.change_hooks_apply.get(key) != null: Settings.change_hooks_apply.get(key).call(value) |