From 81f565418773be417b164e3835610855d09afbe6 Mon Sep 17 00:00:00 2001 From: Cthulhu80 <122310258+Cthulhu80@users.noreply.github.com> Date: Sat, 30 Dec 2023 07:15:52 -0800 Subject: [PATCH] Fixes evac pods launching with more than three occupants (#5335) # About the pull request Fixes #3650 , Evac pods can no longer launch if the occupant number is greater than three. # Explain why it's good for the game bug bad # Changelog :cl: fix: Fixes evac pods launching with more than the occupant limit /:cl: --- code/modules/shuttle/shuttles/crashable/escape_shuttle.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/shuttle/shuttles/crashable/escape_shuttle.dm b/code/modules/shuttle/shuttles/crashable/escape_shuttle.dm index 1f0a8fd502cf..c2c6b818b37b 100644 --- a/code/modules/shuttle/shuttles/crashable/escape_shuttle.dm +++ b/code/modules/shuttle/shuttles/crashable/escape_shuttle.dm @@ -73,6 +73,8 @@ for(var/mob/living/occupant in interior_area) occupant_count++ for(var/obj/structure/machinery/cryopod/evacuation/cryotube in interior_area) + if(cryotube.occupant) + occupant_count++ cryos += list(cryotube) if (occupant_count > max_capacity) playsound(src,'sound/effects/escape_pod_warmup.ogg', 50, 1)