From e9117f1874bd7614dd7d405dfc256b52d3716dae Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 28 Sep 2021 14:08:11 +0200 Subject: [PATCH] [MIRROR] Fixes the auxiliary base construction console. [MDB IGNORE] (#8452) * Fixes the auxiliary base construction console. (#61692) * Fixes the auxiliary base construction console. Co-authored-by: CRITAWAKETS --- .../structures/construction_console/construction_console.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/game/objects/structures/construction_console/construction_console.dm b/code/game/objects/structures/construction_console/construction_console.dm index a3bd5b03c4f..fc35f3726e0 100644 --- a/code/game/objects/structures/construction_console/construction_console.dm +++ b/code/game/objects/structures/construction_console/construction_console.dm @@ -112,14 +112,14 @@ var/obj/machinery/computer/camera_advanced/base_construction/linked_console /mob/camera/ai_eye/remote/base_construction/Initialize(mapload, obj/machinery/computer/camera_advanced/console_link) + linked_console = console_link if(!linked_console) stack_trace("A base consturuction drone was created with no linked console") return INITIALIZE_HINT_QDEL - linked_console = console_link return ..() -/mob/camera/ai_eye/remote/base_construction/setLoc(t) - var/area/curr_area = get_area(t) +/mob/camera/ai_eye/remote/base_construction/setLoc(destination) + var/area/curr_area = get_area(destination) //Only move if we're in the allowed area. If no allowed area is defined, then we're free to move wherever. if(!linked_console.allowed_area || istype(curr_area, linked_console.allowed_area)) return ..()