Skip to content

Commit

Permalink
[MIRROR] Replace new inroduced == null uses with isnull
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhEugene committed Jan 15, 2024
1 parent 3b5bddc commit 71050d0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code/controllers/configuration.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 71050d0

Please sign in to comment.