Skip to content

Commit

Permalink
Fixes evac pods launching with more than three occupants (#5335)
Browse files Browse the repository at this point in the history
# 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:
  • Loading branch information
Cthulhu80 authored Dec 30, 2023
1 parent 4383f1b commit 81f5654
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/shuttle/shuttles/crashable/escape_shuttle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 81f5654

Please sign in to comment.