mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 06:54:18 +01:00
Fix security camera consoles, hopefully (#13507)
This commit is contained in:
@@ -58,8 +58,6 @@
|
||||
to_chat(usr, SPAN_WARNING("Access denied."))
|
||||
return
|
||||
|
||||
if((usr.contents.Find(src) || (in_range(src, usr) && istype(src.loc, /turf))) || (istype(usr, /mob/living/silicon)))
|
||||
usr.set_machine(src)
|
||||
|
||||
if(href_list["setarea"])
|
||||
if(!call_area_names)
|
||||
|
||||
@@ -227,6 +227,16 @@
|
||||
if(item.zoom)
|
||||
item.zoom(mob)
|
||||
break
|
||||
if(istype(mob.machine,/obj/machinery/computer/security))
|
||||
// Has to be here specfically to allow WASD/arrow movement of cameras while buckled.
|
||||
// TODO: Remove when machinery/computer finally dies.
|
||||
var/obj/machinery/computer/security/console = mob.machine
|
||||
if(console.current_camera)
|
||||
var/turf/T = get_turf(console.current_camera)
|
||||
for(var/i;i<10;i++)
|
||||
T = get_step(T,direct)
|
||||
console.jump_on_click(mob,T)
|
||||
return
|
||||
|
||||
// Only meaningful for living mobs.
|
||||
if(Process_Grab())
|
||||
|
||||
Reference in New Issue
Block a user