Skip to content

Commit

Permalink
fixes 0-delay spawners being invalid (oops!)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtl30 committed Feb 13, 2024
1 parent d270590 commit 131a15b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/admin/game_master/game_master.dm
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ GLOBAL_VAR_INIT(radio_communication_clarity, 100)

if("set_xeno_spawn_delay")
var/new_delay = text2num(params["value"])
if(!new_delay)
if(isnull(new_delay)) // obviously !new_delay won't work, because 0 is valid
return
// gotta set some kind of maximum
xeno_spawn_delay = round(clamp(new_delay, 0, 1 HOURS))
Expand Down

0 comments on commit 131a15b

Please sign in to comment.