1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Fix #19906: Destructible cheat does not allow ride modification (#19924)

This commit is contained in:
Chase
2023-04-15 08:10:54 +08:00
committed by GitHub
parent f7b8a2fde7
commit 7e313d45cd
12 changed files with 30 additions and 28 deletions

View File

@@ -882,7 +882,7 @@ void TrackElement::SetBrakeClosed(bool isClosed)
bool TrackElement::IsIndestructible() const
{
return (Flags2 & TRACK_ELEMENT_FLAGS2_INDESTRUCTIBLE_TRACK_PIECE) != 0;
return (Flags2 & TRACK_ELEMENT_FLAGS2_INDESTRUCTIBLE_TRACK_PIECE) != 0 && !gCheatsMakeAllDestructible;
}
void TrackElement::SetIsIndestructible(bool isIndestructible)