[MIRROR] Prevents overriding shuttle areas (#6081)

* Prevents overriding shuttle areas

* Prevents overriding shuttle areas
This commit is contained in:
CitadelStationBot
2018-03-22 19:33:43 -05:00
committed by Poojawa
parent c96253c376
commit 92c868a829
+4 -1
View File
@@ -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, "<span class='warning'>The new area must be completely airtight and not a part of a shuttle.</span>")