Fix #12299 Placing ride entrances/exits ignores the Disable Clearance Checks cheat (#21096)

This commit is contained in:
Max 2023-12-21 20:38:20 +01:00 committed by GitHub
parent b7bf844659
commit 895095acb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -26,6 +26,7 @@
- Fix: [#20807] Tertiary colour not copied with small scenery.
- Fix: [#20964] Crash when player connects to server with a group assigned that no longer exists.
- Fix: [#20995] TTF fonts dont support hinting, outlines, or insets with OpenGL.
- Fix: [#12299] Placing ride entrances/exits ignores the Disable Clearance Checks cheat.
0.4.6 (2023-09-03)
------------------------------------------------------------------------

View File

@ -162,7 +162,8 @@ GameActions::Result RideEntranceExitPlaceAction::Execute() const
}
auto z = station.GetBaseZ();
if (!(GetFlags() & GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED) && !(GetFlags() & GAME_COMMAND_FLAG_GHOST))
if (!(GetFlags() & GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED) && !(GetFlags() & GAME_COMMAND_FLAG_GHOST)
&& !gCheatsDisableClearanceChecks)
{
FootpathRemoveLitter({ _loc, z });
WallRemoveAtZ({ _loc, z });

View File

@ -43,7 +43,7 @@
// It is used for making sure only compatible builds get connected, even within
// single OpenRCT2 version.
#define NETWORK_STREAM_VERSION "11"
#define NETWORK_STREAM_VERSION "12"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION