Skip to content

Commit

Permalink
Fix bug where tunnel tubes were shifted incorrectly on map resize
Browse files Browse the repository at this point in the history
  • Loading branch information
Rampastring committed Dec 20, 2024
1 parent db7f14b commit ce5d8c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/TSMapEditor/Models/Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});


Expand Down

0 comments on commit ce5d8c1

Please sign in to comment.