From 0e0b50045af8fcba87f26c1eb9c4d0ea99bd7dc2 Mon Sep 17 00:00:00 2001 From: Time-Green Date: Fri, 3 Apr 2020 00:52:34 +0200 Subject: [PATCH] fixes plumbing rotation truly finally (#50352) --- code/datums/components/plumbing/_plumbing.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/datums/components/plumbing/_plumbing.dm b/code/datums/components/plumbing/_plumbing.dm index d4fbf616dd9..1f61f092596 100644 --- a/code/datums/components/plumbing/_plumbing.dm +++ b/code/datums/components/plumbing/_plumbing.dm @@ -105,9 +105,9 @@ for(var/D in GLOB.cardinals) var/color var/direction - if(D & demand_connects) + if(D & initial(demand_connects)) color = "red" //red because red is mean and it takes - else if(D & supply_connects) + else if(D & initial(supply_connects)) color = "blue" //blue is nice and gives else continue @@ -196,7 +196,7 @@ var/new_demand_connects var/new_supply_connects var/new_dir = AM.dir - var/angle = 270 - dir2angle(new_dir) //it's 270 because of the way ducts are oriented, sorry + var/angle = 180 - dir2angle(new_dir) if(new_dir == SOUTH) demand_connects = initial(demand_connects)