mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 18:33:36 +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
|
screen_loc = ui_building
|
||||||
|
|
||||||
/obj/screen/area_creator/Click()
|
/obj/screen/area_creator/Click()
|
||||||
if(usr.incapacitated())
|
if(usr.incapacitated() || (isobserver(usr) && !IsAdminGhost(usr)))
|
||||||
return 1
|
return TRUE
|
||||||
var/area/A = get_area(usr)
|
var/area/A = get_area(usr)
|
||||||
if(!A.outdoors)
|
if(!A.outdoors)
|
||||||
to_chat(usr, "<span class='warning'>There is already a defined structure here.</span>")
|
to_chat(usr, "<span class='warning'>There is already a defined structure here.</span>")
|
||||||
return 1
|
return TRUE
|
||||||
create_area(usr)
|
create_area(usr)
|
||||||
|
|
||||||
/obj/screen/language_menu
|
/obj/screen/language_menu
|
||||||
|
|||||||
Reference in New Issue
Block a user