diff options
author | tpart <tpart120@proton.me> | 2024-07-30 19:17:13 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-07-30 19:17:13 +0200 |
commit | c12ea72e57a2af3b27c5dea21f3b5a15174a9618 (patch) | |
tree | 2e4f327d31a1cfd3060ca52b52c35f821c772390 | |
parent | 5ce7164a42ded5f10812862c6ba3680c760ff186 (diff) | |
download | hurrycurry-c12ea72e57a2af3b27c5dea21f3b5a15174a9618.tar hurrycurry-c12ea72e57a2af3b27c5dea21f3b5a15174a9618.tar.bz2 hurrycurry-c12ea72e57a2af3b27c5dea21f3b5a15174a9618.tar.zst |
Fix warning about ternary operation value types
-rw-r--r-- | client/global.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/global.gd b/client/global.gd index 9a010e96..ea876376 100644 --- a/client/global.gd +++ b/client/global.gd @@ -54,7 +54,7 @@ var default_settings := { "server_binary": TextSetting.new(tr("Server binary (leave empty to search PATH)"), "", tr("Enter path")), "server_data": TextSetting.new(tr("Server data directory (leave empty to auto-detect)"), "", tr("Enter path")), "ui_scale_mode": DropdownSetting.new(tr("UI scale mode"), 0, [tr("Resize"), tr("Disabled")]), - "ui_scale_factor": RangeSetting.new(tr("UI scale factor"), 1 if not on_mobile else 1.5, 0.5, 1.5, 3), + "ui_scale_factor": RangeSetting.new(tr("UI scale factor"), 1. if not on_mobile else 1.5, 0.5, 1.5, 3), "aa": DropdownSetting.new(tr("Anti-aliasing"), 2 if on_high_end() else 0, [tr("Disabled"), "FXAA", "MSAA 2x", "MSAA 4x"]), "ssao": ToggleSetting.new(tr("Ambient occlusion"), true if on_high_end() else false), "taa": ToggleSetting.new(tr("Temporal Anti-Aliasing"), false), |