1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Fix paths in track design previews not being connected correctly

This commit is contained in:
mix
2025-11-03 01:06:41 +00:00
committed by Gymnasiast
parent 61e73a5535
commit 462f294184
2 changed files with 3 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
- Fix: [#14365] Track designs with scenery below the lowest track piece do not preview correctly.
- Fix: [#25451] Dropdown item tooltips stay open if the mouse is moved over an empty space.
- Fix: [#25461] Path connections in raised track designs are sometimes broken when placed.
- Fix: [#25467] Paths are not connected together correctly in track design previews.
- Fix: [#25476] When both RCT2 and RCT1 are present, autodetection fails.
0.4.28 (2025-11-01)

View File

@@ -1244,7 +1244,8 @@ static GameActions::Result TrackDesignPlaceSceneryElement(
flags |= GAME_COMMAND_FLAG_REPLAY;
}
if (tds.placeOperation == TrackPlaceOperation::place)
if (tds.placeOperation == TrackPlaceOperation::placeTrackPreview
|| tds.placeOperation == TrackPlaceOperation::place)
{
if (!pathElement->IsQueue() || FootpathQueueCountConnections(mapCoord, *pathElement) < 2)
{