Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] Replace new inroduced == null uses with isnull #1802

Merged
merged 1 commit into from
Jan 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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