From 97cebeed81105207246c7b1bbc250634906ee713 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Thu, 16 Oct 2025 23:00:18 +0200 Subject: [PATCH 1/2] Fix #25359: No preview when hovering on sloped land in path drag mode --- src/openrct2-ui/windows/Footpath.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/openrct2-ui/windows/Footpath.cpp b/src/openrct2-ui/windows/Footpath.cpp index c7dabfbf67..6490d8d419 100644 --- a/src/openrct2-ui/windows/Footpath.cpp +++ b/src/openrct2-ui/windows/Footpath.cpp @@ -1256,24 +1256,7 @@ namespace OpenRCT2::Ui::Windows if (isLeftMousePressed) return; - MapInvalidateSelectionRect(); - gMapSelectFlags.unset(MapSelectFlag::enableArrow); - - auto mapPos = FootpathGetPlacePositionFromScreenPosition(screenCoords); - if (!mapPos) - { - gMapSelectFlags.unset(MapSelectFlag::enable); - return; - } - - auto placement = WindowFootpathGetPlacementFromScreenCoords(screenCoords); - - // Set map selection - gMapSelectFlags.set(MapSelectFlag::enable); - gMapSelectType = MapSelectType::full; - - setMapSelectRange(*mapPos); - WindowFootpathSetProvisionalPathDragArea(getMapSelectRange(), placement.baseZ); + WindowFootpathSetProvisionalPathAtPoint(screenCoords); } void WindowFootpathPlacePath() From f39aa017e810141ceac33444f4c0f833321e1337 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 20 Oct 2025 20:01:02 +0200 Subject: [PATCH 2/2] Fix: clicking an unsuitable piece of land in footpath drag mode will place a piece anyway Specifically, path will be placed on the last tile that was suitable. --- src/openrct2-ui/windows/Footpath.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openrct2-ui/windows/Footpath.cpp b/src/openrct2-ui/windows/Footpath.cpp index 6490d8d419..32fed7dc57 100644 --- a/src/openrct2-ui/windows/Footpath.cpp +++ b/src/openrct2-ui/windows/Footpath.cpp @@ -1193,6 +1193,7 @@ namespace OpenRCT2::Ui::Windows { return; } + _provisionalFootpath.tiles.clear(); auto mapPos = FootpathGetPlacePositionFromScreenPosition(screenCoords); if (!mapPos)