From ce5d8c114a3a4a4b510fc368c448119f511f8a27 Mon Sep 17 00:00:00 2001 From: Rampastring Date: Fri, 20 Dec 2024 20:37:35 +0200 Subject: [PATCH] Fix bug where tunnel tubes were shifted incorrectly on map resize --- src/TSMapEditor/Models/Map.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/TSMapEditor/Models/Map.cs b/src/TSMapEditor/Models/Map.cs index 89026632..3a3c836d 100644 --- a/src/TSMapEditor/Models/Map.cs +++ b/src/TSMapEditor/Models/Map.cs @@ -575,11 +575,10 @@ public void Resize(Point2D newSize, int eastShift, int southShift) ShiftObjectsInList(house.BaseNodes, eastShift, southShift); } - // Tubes are slightly more complicated... + // Shift tunnel tubes Tubes.ForEach(tube => { - tube.ShiftPosition(eastShift, -eastShift); - tube.ShiftPosition(southShift, southShift); + tube.ShiftPosition(eastShift, southShift); });