From 1cdafe8a1d23b3cc5bdf583c1e29b54fe3151a84 Mon Sep 17 00:00:00 2001 From: AnturK Date: Fri, 1 Jan 2016 13:39:43 +0100 Subject: [PATCH] Fixes transit tube flipping --- .../structures/transit_tubes/transit_tube_construction.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/game/objects/structures/transit_tubes/transit_tube_construction.dm b/code/game/objects/structures/transit_tubes/transit_tube_construction.dm index 010200185ee..d10ffe89303 100644 --- a/code/game/objects/structures/transit_tubes/transit_tube_construction.dm +++ b/code/game/objects/structures/transit_tubes/transit_tube_construction.dm @@ -35,8 +35,11 @@ //for junctions, just swap the diagonals with each other if(split_text.len == 3 && split_text[3] != "Pass") split_text.Swap(2,3) + else if(length(split_text[1]) == 2 && length(split_text[2]) == 2) //diagonals + split_text[1] = copytext(split_text[1],1,2) + copytext(split_text[2],2,3) + split_text[2] = copytext(split_text[2],1,2) + ((copytext(split_text[2],2,3) == "E") ? "W" : "E") //for curves, swap the diagonal direction that is not in the same axis as the cardinal direction - else + else if(split_text[1] == "N" || split_text[1] == "S") split_text[2] = copytext(split_text[2],1,2) + ((copytext(split_text[2],2,3) == "E") ? "W" : "E") else