From 0a8467c431bbda88782b5e509a1093fbf648a39f Mon Sep 17 00:00:00 2001 From: Drathek <76988376+Drulikar@users.noreply.github.com> Date: Mon, 15 Jan 2024 01:12:15 -0800 Subject: [PATCH] Fix all hands on deck message not targeting those in cryopods (#5440) # About the pull request This PR simply allows the all hands on deck message for a CO spawning in to send the message and sound to those inside containers on the ship (e.g. cryopods). # Explain why it's good for the game Restores old behavior before cryopods (though I swear this worked before with people in cryopods) # Testing Photographs and Procedure
Screenshots & Videos ![image](https://github.com/cmss13-devs/cmss13/assets/76988376/70562355-4c46-41c2-8b7a-613029625b92)
# Changelog :cl: Drathek fix: Fix all hands on deck message not sending to those in cryopods /:cl: --- code/defines/procs/announcement.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/defines/procs/announcement.dm b/code/defines/procs/announcement.dm index 3dd918abbc6b..3eae6076f610 100644 --- a/code/defines/procs/announcement.dm +++ b/code/defines/procs/announcement.dm @@ -145,7 +145,7 @@ for(var/mob/T in targets) if(isobserver(T)) continue - if(!ishuman(T) || isyautja(T) || !is_mainship_level(T.z)) + if(!ishuman(T) || isyautja(T) || !is_mainship_level((get_turf(T))?.z)) targets.Remove(T) log_ares_announcement("[title] Shipwide Update", message)