performance

This commit is contained in:
Fox-McCloud
2017-07-31 14:01:15 -04:00
parent e3d425aae3
commit 6bd0d17527
4 changed files with 20 additions and 19 deletions
+2 -1
View File
@@ -57,10 +57,11 @@
return
// and play
var/turf/source = get_turf(instrumentObj)
var/sound/music_played = sound(soundfile)
for(var/mob/M in hearers(15, source))
if(!M.client || !(M.client.prefs.sound & SOUND_INSTRUMENTS))
continue
M.playsound_local(source, soundfile, 100, falloff = 5)
M.playsound_local(source, null, 100, falloff = 5, S = music_played)
/datum/song/proc/shouldStopPlaying(mob/user)
if(instrumentObj)