From 4a456fd2c7c99f27581c659016b26df23f21c926 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Mon, 28 Aug 2017 02:20:25 -0500 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 716c1b1f80..3b070f1384 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 = -23 + if(EAST) + pixel_x = 24 + if(WEST) + pixel_x = -25 if (building) area = get_area(src) opened = 1