From b61bfcc3648b5cd3976e276efb63a4a11649d997 Mon Sep 17 00:00:00 2001 From: Lucy Date: Thu, 22 May 2025 07:36:45 -0400 Subject: [PATCH] converts a low-hanging fruit to `astype` (#91265) ## About The Pull Request the comments said this was a low-hanging fruit to convert to `astype`, so I converted it to `astype`. ## Changelog No player-facing changes --- code/__HELPERS/priority_announce.dm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/code/__HELPERS/priority_announce.dm b/code/__HELPERS/priority_announce.dm index e49001b4e72..b9a9c49b1df 100644 --- a/code/__HELPERS/priority_announce.dm +++ b/code/__HELPERS/priority_announce.dm @@ -192,11 +192,7 @@ var/sound_to_play = !isnull(sound_override) ? sound_override : 'sound/announcer/notice/notice2.ogg' - // note for later: low-hanging fruit to convert to astype() behind an experiment define whenever the 516 beta releases - // var/datum/callback/should_play_sound_callback = astype(should_play_sound) - var/datum/callback/should_play_sound_callback - if(istype(should_play_sound, /datum/callback)) - should_play_sound_callback = should_play_sound + var/datum/callback/should_play_sound_callback = astype(should_play_sound) for(var/mob/target in players) if(isnewplayer(target) || !target.can_hear())