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
This commit is contained in:
Lucy
2025-05-22 21:36:39 -04:00
committed by Roxy
parent 555aad3182
commit b61bfcc364
+1 -5
View File
@@ -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())