From 69212f4b5e57b80747bd40c75dcfb2fd41366a90 Mon Sep 17 00:00:00 2001 From: harryob Date: Sat, 2 Mar 2024 13:26:38 +0000 Subject: [PATCH] cleanup --- code/__DEFINES/subsystems.dm | 2 -- code/__HELPERS/sanitize_values.dm | 7 ------- code/modules/client/preferences.dm | 2 +- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/code/__DEFINES/subsystems.dm b/code/__DEFINES/subsystems.dm index 8d0ce9128244..47aa0e732c76 100644 --- a/code/__DEFINES/subsystems.dm +++ b/code/__DEFINES/subsystems.dm @@ -109,8 +109,6 @@ // Subsystems shutdown in the reverse of the order they initialize in // The numbers just define the ordering, they are meaningless otherwise. -#define SS_INIT_TICKER_SPAWN 999 -#define SS_INIT_TITLE 990 #define SS_INIT_PROFILER 86 #define SS_INIT_INPUT 85 #define SS_INIT_TOPIC 83 diff --git a/code/__HELPERS/sanitize_values.dm b/code/__HELPERS/sanitize_values.dm index 87fd5f900a5c..85e102a3c1ac 100644 --- a/code/__HELPERS/sanitize_values.dm +++ b/code/__HELPERS/sanitize_values.dm @@ -6,13 +6,6 @@ return number return default -/proc/sanitize_float(number, min=0, max=1, accuracy=1, default=0) - if(isnum(number)) - number = round(number, accuracy) - if(min <= number && number <= max) - return number - return default - /proc/sanitize_text(text, default="") if(istext(text)) return text diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index 04d5a953cb4a..51bee51b60a1 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -238,7 +238,7 @@ GLOBAL_LIST_INIT(bgstate_options, list( var/widescreen = TRUE - var/pixel_size = 0 + var/pixel_size = PIXEL_SCALING_AUTO var/scaling_method = SCALING_METHOD_NORMAL /// if this client has tooltips enabled