From c12ea72e57a2af3b27c5dea21f3b5a15174a9618 Mon Sep 17 00:00:00 2001 From: tpart Date: Tue, 30 Jul 2024 19:17:13 +0200 Subject: Fix warning about ternary operation value types --- client/global.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- cgit v1.2.3-70-g09d2