mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 08:37:43 +01:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user