[MIRROR] [s] Fixes observers being able to create areas (#5724)

* [s] Fixes observers being able to create areas (#36006)

* Fixes observers being able to create areas

* Exception for admin ghosts

* [s] Fixes observers being able to create areas
This commit is contained in:
CitadelStationBot
2018-02-27 05:04:00 -06:00
committed by Poojawa
parent 23c5092088
commit 0ad6fe35e0

View File

@@ -76,12 +76,12 @@
screen_loc = ui_building
/obj/screen/area_creator/Click()
if(usr.incapacitated())
return 1
if(usr.incapacitated() || (isobserver(usr) && !IsAdminGhost(usr)))
return TRUE
var/area/A = get_area(usr)
if(!A.outdoors)
to_chat(usr, "<span class='warning'>There is already a defined structure here.</span>")
return 1
return TRUE
create_area(usr)
/obj/screen/language_menu