From 92c868a829b36f57d06ecf327d3bed3b7f59cf4a Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Thu, 22 Mar 2018 19:33:43 -0500 Subject: [PATCH] [MIRROR] Prevents overriding shuttle areas (#6081) * Prevents overriding shuttle areas * Prevents overriding shuttle areas --- code/__HELPERS/areas.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/__HELPERS/areas.dm b/code/__HELPERS/areas.dm index daf7f9dcc3..0d12a5ca58 100644 --- a/code/__HELPERS/areas.dm +++ b/code/__HELPERS/areas.dm @@ -36,7 +36,10 @@ /proc/create_area(mob/creator) var/static/blacklisted_turfs = typecacheof(/turf/open/space) - var/static/blacklisted_areas = typecacheof(/area/space) + var/static/blacklisted_areas = typecacheof(list( + /area/space, + /area/shuttle, + )) var/list/turfs = detect_room(get_turf(creator), blacklisted_turfs) if(!turfs) to_chat(creator, "The new area must be completely airtight and not a part of a shuttle.")