diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 28d8dba81b..e6c53f1a6f 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -3,6 +3,7 @@ - Feature: [#15642] Track design placement can now use contruction modifier keys (ctrl/shift). - Feature: [#21521] [Plugin] Add hook 'park.guest.softcap.calculate' called before calculating the soft guest cap. - Change: [#22596] Land ownership fixes described by .parkpatch files are now only considered on scenarios. +- Change: [#22740] Add virtual floor to shifted track design placement. - Fix: [#2614] The colour tab of the ride window does not hide invisible cars (original bug). - Fix: [#15406] Tunnels on steep Side-Friction track are drawn too low. - Fix: [#21959] “Save this before...?” message does not appear when selecting “New Game”. diff --git a/src/openrct2-ui/windows/TrackDesignPlace.cpp b/src/openrct2-ui/windows/TrackDesignPlace.cpp index 71d1986eee..8f3d1d92fb 100644 --- a/src/openrct2-ui/windows/TrackDesignPlace.cpp +++ b/src/openrct2-ui/windows/TrackDesignPlace.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -226,6 +227,8 @@ namespace OpenRCT2::Ui::Windows }); res = GameActions::Execute(&tdAction); cost = res.Error == GameActions::Status::Ok ? res.Cost : kMoney64Undefined; + + VirtualFloorSetHeight(trackLoc.z); } } @@ -440,6 +443,8 @@ namespace OpenRCT2::Ui::Windows TrackDesignPreviewRemoveGhosts(*_trackDesign, *newRide, _placementGhostLoc); _hasPlacementGhost = false; } + + VirtualFloorSetHeight(0); } }