From cbcb9f32baaa54c57999e8406e1eb47e9052b14f Mon Sep 17 00:00:00 2001 From: Ghommie <42542238+Ghommie@users.noreply.github.com> Date: Sun, 2 Feb 2020 04:21:30 +0100 Subject: [PATCH] Fixes maploaded APC terminals direction. --- code/modules/power/apc.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/modules/power/apc.dm b/code/modules/power/apc.dm index 78294e988d..c61c7d03df 100644 --- a/code/modules/power/apc.dm +++ b/code/modules/power/apc.dm @@ -152,6 +152,7 @@ /obj/machinery/power/apc/Initialize(mapload, ndir, building = FALSE) . = ..() + tdir = ndir || dir var/area/A = get_base_area(src) if(!building) has_electronics = APC_ELECTRONICS_SECURED @@ -189,9 +190,6 @@ wires = new /datum/wires/apc(src) // offset 24 pixels in direction of dir // this allows the APC to be embedded in a wall, yet still inside an area - if (building) - setDir(ndir) - src.tdir = dir // to fix Vars bug setDir(SOUTH) switch(tdir)