Allow opening rides with unsuitable track when "Enable all drawable track pieces" cheat is on. (#10923)

Co-authored-by: Edward Calver <hx010973@reading.ac.uk>
This commit is contained in:
X123M3-256 2020-03-15 13:11:04 +00:00 committed by GitHub
parent 1331283f9a
commit 7219c880e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5224,7 +5224,7 @@ int32_t ride_is_valid_for_test(Ride* ride, int32_t status, bool isApplying)
}
}
if (ride->subtype != RIDE_ENTRY_INDEX_NULL)
if (ride->subtype != RIDE_ENTRY_INDEX_NULL && !gCheatsEnableAllDrawableTrackPieces)
{
rct_ride_entry* rideType = get_ride_entry(ride->subtype);
if (rideType->flags & RIDE_ENTRY_FLAG_NO_INVERSIONS)