Merge pull request #6466 from Heroman3003/boompref

Makes lightning strikes respect weather sound pref
This commit is contained in:
Atermonera
2019-09-27 12:05:00 -08:00
committed by VirgoBot
parent 09f862f448
commit 42e0e8a91f

View File

@@ -65,6 +65,7 @@
var/sound = get_sfx("thunder") var/sound = get_sfx("thunder")
for(var/mob/M in player_list) for(var/mob/M in player_list)
if((P && M.z in P.expected_z_levels) || M.z == T.z) if((P && M.z in P.expected_z_levels) || M.z == T.z)
if(M.is_preference_enabled(/datum/client_preference/weather_sounds))
M.playsound_local(get_turf(M), soundin = sound, vol = 70, vary = FALSE, is_global = TRUE) M.playsound_local(get_turf(M), soundin = sound, vol = 70, vary = FALSE, is_global = TRUE)
if(cosmetic) // Everything beyond here involves potentially damaging things. If we don't want to do that, stop now. if(cosmetic) // Everything beyond here involves potentially damaging things. If we don't want to do that, stop now.