Dance Machine now obeys instrument preference (#33607)

This commit is contained in:
oranges
2017-12-18 10:01:41 +13:00
committed by CitadelStationBot
parent 220e1cd8cf
commit ac95eb06e8
+2
View File
@@ -459,6 +459,8 @@
var/sound/song_played = sound(selection.song_path)
for(var/mob/M in range(10,src))
if(!M.client || !(M.client.prefs.toggles & SOUND_INSTRUMENTS))
continue
if(!(M in rangers))
rangers[M] = TRUE
M.playsound_local(get_turf(M), null, 100, channel = CHANNEL_JUKEBOX, S = song_played)