Skip to content

Commit

Permalink
Fix all hands on deck message not targeting those in cryopods (#5440)
Browse files Browse the repository at this point in the history
# 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
<details>
<summary>Screenshots & Videos</summary>


![image](https://github.com/cmss13-devs/cmss13/assets/76988376/70562355-4c46-41c2-8b7a-613029625b92)

</details>


# Changelog
:cl: Drathek
fix: Fix all hands on deck message not sending to those in cryopods
/:cl:
  • Loading branch information
Drulikar committed Jan 15, 2024
1 parent b2413c9 commit 0a8467c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/defines/procs/announcement.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0a8467c

Please sign in to comment.