mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
isnum() checks for squeak component initialisation (#39847)
if you supply step_delay_override or use_delay_override as 0 then component just ignores these new values despite them being valid options by using isnum() checks, these values can actually be used for this
This commit is contained in:
committed by
Tad Hardesty
parent
d60cb8f1cd
commit
d2f7b3376a
@@ -33,9 +33,9 @@
|
||||
squeak_chance = chance_override
|
||||
if(volume_override)
|
||||
volume = volume_override
|
||||
if(step_delay_override)
|
||||
if(isnum(step_delay_override))
|
||||
step_delay = step_delay_override
|
||||
if(use_delay_override)
|
||||
if(isnum(use_delay_override))
|
||||
use_delay = use_delay_override
|
||||
|
||||
/datum/component/squeak/proc/play_squeak()
|
||||
|
||||
Reference in New Issue
Block a user