From 65146c8a02ebaa539cc74319e622dacac075c1e7 Mon Sep 17 00:00:00 2001 From: Joan Lung <3886584+ChangelingRain@users.noreply.github.com> Date: Fri, 25 Aug 2017 23:10:12 -0400 Subject: [PATCH] Fixes APC pixel shift being off --- code/modules/power/apc.dm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/code/modules/power/apc.dm b/code/modules/power/apc.dm index 716c1b1f806..49119da52e7 100644 --- a/code/modules/power/apc.dm +++ b/code/modules/power/apc.dm @@ -120,8 +120,15 @@ if(auto_name) name = "\improper [get_area(src)] APC" - pixel_x = (src.tdir & 3)? 0 : (src.tdir == 4 ? 26 : -27) - pixel_y = (src.tdir & 3)? (src.tdir == 1 ? 25 : -25) : 0 + switch(tdir) + if(NORTH) + pixel_y = 23 + if(SOUTH) + pixel_y = -25 + if(EAST) + pixel_x = 24 + if(WEST) + pixel_x = -25 if (building) area = get_area(src) opened = 1