Merge pull request #14641 from Heroman3003/admin-perm-fixes-also-sound

Fixes some admin perms not being properly checked
This commit is contained in:
Casey
2023-03-09 15:33:21 -05:00
committed by GitHub
4 changed files with 10 additions and 7 deletions
@@ -206,7 +206,7 @@
return TOPIC_REFRESH
else if(href_list["voice_test"])
var/sound/S = pick(pref.voice_sound)
var/sound/S
switch(pref.voice_sound)
if("beep-boop")
S = sound(pick(talk_sound))
@@ -236,8 +236,9 @@
S = sound(pick(goon_speak_roach_sound))
if("goon speak skelly")
S = sound(pick(goon_speak_skelly_sound))
S.frequency = pick(pref.voice_freq)
S.volume = 50
SEND_SOUND(user, S)
if(S)
S.frequency = pick(pref.voice_freq)
S.volume = 50
SEND_SOUND(user, S)
return ..();