Fix some runtimes (#33402)

* runtimes

* Update switchtool.dm

* Update cargo.dm

* this isn't even compiled

* Update robot.dm

* Update headset.dm

* Update apc.dm

* Update components.dm

* Update ai.dm

* Update robot.dm
This commit is contained in:
adacovsk
2022-09-30 04:07:09 -04:00
committed by GitHub
parent 29ca009e58
commit e9b5c4f726
12 changed files with 30 additions and 747 deletions

View File

@@ -35,7 +35,7 @@
/obj/item/device/radio/headset/talk_into(datum/speech/speech_orig, channel=null)
if(!broadcasting)
return
if(usr.client && usr.client.prefs.headset_sound)
if(usr?.client?.prefs.headset_sound)
playsound(usr, 'sound/effects/radio_chatter.ogg', 100, 1, vary = 0)
return ..()