From 71050d048ea3cff4abb01039b99e9896b14a916a Mon Sep 17 00:00:00 2001 From: SuhEugene <32931701+SuhEugene@users.noreply.github.com> Date: Mon, 15 Jan 2024 13:53:42 +0300 Subject: [PATCH] [MIRROR] Replace new inroduced `== null` uses with `isnull` --- code/controllers/configuration.dm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/controllers/configuration.dm b/code/controllers/configuration.dm index f24f2ced7dd10..4085b65c8e37d 100644 --- a/code/controllers/configuration.dm +++ b/code/controllers/configuration.dm @@ -568,7 +568,7 @@ else log_misc("Invalid vote_autotransfer_initial: [value]") vote_autotransfer_initial = 0 - if (vote_autotransfer_initial == null || vote_autotransfer_initial < 0) + if (isnull(vote_autotransfer_initial) || vote_autotransfer_initial < 0) log_misc("Invalid vote_autotransfer_initial: [value]") vote_autotransfer_initial = 0 if ("vote_autotransfer_interval") @@ -581,17 +581,17 @@ else log_misc("Invalid vote_autotransfer_interval: [value]") vote_autotransfer_interval = 0 - if (vote_autotransfer_interval == null || vote_autotransfer_interval < 0) + if (isnull(vote_autotransfer_interval) || vote_autotransfer_interval < 0) log_misc("Invalid vote_autotransfer_interval: [value]") vote_autotransfer_interval = 0 if ("transfer_vote_block_antag_time") transfer_vote_block_antag_time = text2num_or_default(value) - if (transfer_vote_block_antag_time == null || transfer_vote_block_antag_time < 0) + if (isnull(transfer_vote_block_antag_time) || transfer_vote_block_antag_time < 0) log_misc("Invalid transfer_vote_block_antag_time: [value]") transfer_vote_block_antag_time = 0 if ("empty_round_check_interval") empty_round_check_interval = text2num_or_default(value) - if (empty_round_check_interval == null || empty_round_check_interval < 0) + if (isnull(empty_round_check_interval) || empty_round_check_interval < 0) log_misc("Invalid empty_round_check_interval: [value]") empty_round_check_interval = 0 if ("vote_autogamemode_timeleft") @@ -863,7 +863,7 @@ log_timers_on_bucket_reset = TRUE if ("maximum_round_length") maximum_round_length = text2num_or_default(value) - if (maximum_round_length == null || maximum_round_length < 0) + if (isnull(maximum_round_length) || maximum_round_length < 0) log_misc("Invalid maximum_round_length: [value]") maximum_round_length = 0 if ("stat_delay")