From 1df1d63af15bdd9651b29282c3d3be46377e7363 Mon Sep 17 00:00:00 2001
From: GDN <96800819+GDNgit@users.noreply.github.com>
Date: Mon, 3 Oct 2022 04:59:08 -0500
Subject: [PATCH] Fixes survival pods being used on station (#19256)
---
code/modules/mining/equipment/survival_pod.dm | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/code/modules/mining/equipment/survival_pod.dm b/code/modules/mining/equipment/survival_pod.dm
index 8cf1657d19f..86ed5eec0d4 100644
--- a/code/modules/mining/equipment/survival_pod.dm
+++ b/code/modules/mining/equipment/survival_pod.dm
@@ -42,16 +42,17 @@
// Can't grab when capsule is New() because templates aren't loaded then
get_template()
if(used == FALSE)
- var/turf/UT = get_turf(usr)
- if((UT.z == level_name_to_num(MAIN_STATION)) && !emagged)
- to_chat(usr, "Error. Deployment was attempted on the station sector. Deployment aborted.")
- playsound(usr, 'sound/machines/terminal_error.ogg', 15, TRUE)
- return
loc.visible_message("[src] begins to shake. Stand back!")
used = TRUE
sleep(50)
var/turf/deploy_location = get_turf(src)
var/status = template.check_deploy(deploy_location)
+ var/turf/UT = get_turf(usr)
+ if((UT.z == level_name_to_num(MAIN_STATION)) && !emagged)
+ to_chat(usr, "Error. Deployment was attempted on the station sector. Deployment aborted.")
+ playsound(usr, 'sound/machines/terminal_error.ogg', 15, TRUE)
+ used = FALSE
+ return
switch(status)
if(SHELTER_DEPLOY_BAD_AREA)
loc.visible_message("[src] will not function in this area.")