From 0416c2eaa3a36e7f8bed6bfb1d1200d54562d466 Mon Sep 17 00:00:00 2001 From: Tulio Leao Date: Sun, 22 Dec 2019 09:45:23 -0300 Subject: [PATCH] Merge pull request #10427 from tupaschoal/fix-10426 Fix #10426: Deleting path moves preview in opposite direction --- src/openrct2-ui/windows/Footpath.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/Footpath.cpp b/src/openrct2-ui/windows/Footpath.cpp index 46ebbfe30b..bf7b6097c1 100644 --- a/src/openrct2-ui/windows/Footpath.cpp +++ b/src/openrct2-ui/windows/Footpath.cpp @@ -1051,10 +1051,11 @@ static void footpath_remove_tile_element(TileElement* tileElement) footpath_remove(gFootpathConstructFromPosition, GAME_COMMAND_FLAG_APPLY); // Move selection + edge = direction_reverse(edge); gFootpathConstructFromPosition.x -= CoordsDirectionDelta[edge].x; gFootpathConstructFromPosition.y -= CoordsDirectionDelta[edge].y; gFootpathConstructFromPosition.z = z * 8; - gFootpathConstructDirection = direction_reverse(edge); + gFootpathConstructDirection = edge; gFootpathConstructValidDirections = 255; }