Fix runtimes

This commit is contained in:
mochi
2020-07-22 07:46:04 +02:00
parent 79ed9b8b57
commit e554b9f19d
2 changed files with 2 additions and 2 deletions
@@ -89,7 +89,7 @@
var/sound/music_played = sound(soundfile)
for(var/i in hearing_mobs)
var/mob/M = i
if(!(M.client.prefs.sound & SOUND_INSTRUMENTS))
if(!(M.client?.prefs?.sound & SOUND_INSTRUMENTS))
continue
M.playsound_local(source, null, volume * using_instrument.volume_multiplier, falloff = 5, S = music_played)
// Could do environment and echo later but not for now
@@ -62,7 +62,7 @@
last_channel_played = channel_text
for(var/i in hearing_mobs)
var/mob/M = i
if(!(M.client.prefs.sound & SOUND_INSTRUMENTS))
if(!(M.client?.prefs?.sound & SOUND_INSTRUMENTS))
continue
M.playsound_local(get_turf(parent), null, volume, FALSE, K.frequency, INSTRUMENT_DISTANCE_NO_FALLOFF, channel, null, copy, distance_multiplier = INSTRUMENT_DISTANCE_FALLOFF_BUFF)
// Could do environment and echo later but not for now