mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
[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:
committed by
Poojawa
parent
23c5092088
commit
0ad6fe35e0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user