Skip to content

Commit

Permalink
Fixes the Announcements Announcers
Browse files Browse the repository at this point in the history
  • Loading branch information
Wisemonster committed Jul 23, 2023
1 parent b759abf commit 2a0954d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/__HELPERS/priority_announce.dm
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,11 @@
if(!players)
players = GLOB.player_list

var/sound/sound_to_play = sound(sound)
for(var/mob/target in players)
if(!isnewplayer(target) && target.can_hear())
sound_to_play.volume = target.client?.prefs.channel_volume["[CHANNEL_VOX]"]
to_chat(target, announcement)
if(target.client.prefs.read_preference(/datum/preference/toggle/sound_announcements))
SEND_SOUND(target, sound_to_play)
SEND_SOUND(target, sound(sound, volume = target.client?.prefs.channel_volume["[CHANNEL_VOX]"]))

/proc/print_command_report(text = "", title = null, announce=TRUE)
if(!title)
Expand Down

0 comments on commit 2a0954d

Please sign in to comment.