Merge pull request #10850 from Ghommie/Ghommie-cit548
Fixes maploaded APC terminals direction.
This commit is contained in:
@@ -152,6 +152,7 @@
|
|||||||
|
|
||||||
/obj/machinery/power/apc/Initialize(mapload, ndir, building = FALSE)
|
/obj/machinery/power/apc/Initialize(mapload, ndir, building = FALSE)
|
||||||
. = ..()
|
. = ..()
|
||||||
|
tdir = ndir || dir
|
||||||
var/area/A = get_base_area(src)
|
var/area/A = get_base_area(src)
|
||||||
if(!building)
|
if(!building)
|
||||||
has_electronics = APC_ELECTRONICS_SECURED
|
has_electronics = APC_ELECTRONICS_SECURED
|
||||||
@@ -189,9 +190,6 @@
|
|||||||
wires = new /datum/wires/apc(src)
|
wires = new /datum/wires/apc(src)
|
||||||
// offset 24 pixels in direction of dir
|
// offset 24 pixels in direction of dir
|
||||||
// this allows the APC to be embedded in a wall, yet still inside an area
|
// 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)
|
setDir(SOUTH)
|
||||||
|
|
||||||
switch(tdir)
|
switch(tdir)
|
||||||
|
|||||||
Reference in New Issue
Block a user