Skip to content

Commit

Permalink
remove check for reverser coaster
Browse files Browse the repository at this point in the history
  • Loading branch information
spacek531 committed May 3, 2024
1 parent 245173a commit 6952170
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/openrct2-ui/windows/Ride.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2946,7 +2946,7 @@ static_assert(std::size(RatingNames) == 6);
y -= (carEntry.spacing / 2) / 17432;
}

if (ride->type == RIDE_TYPE_REVERSER_ROLLER_COASTER)
if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_LAYERED_VEHICLE_PREVIEW))
{
VehicleDrawInfo tmp = *(nextSpriteToDraw - 1);
*(nextSpriteToDraw - 1) = *(nextSpriteToDraw - 2);
Expand Down
1 change: 1 addition & 0 deletions src/openrct2/ride/RideData.h
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ enum ride_type_flags : uint64_t
RIDE_TYPE_FLAG_CHECK_FOR_STALLING = (1uLL << 27),
RIDE_TYPE_FLAG_HAS_TRACK = (1uLL << 28),
RIDE_TYPE_FLAG_ALLOW_EXTRA_TOWER_BASES = (1uLL << 29), // Only set by lift
RIDE_TYPE_FLAG_LAYERED_VEHICLE_PREVIEW = (1uLL << 30), // Only set by reverser coaster
RIDE_TYPE_FLAG_SUPPORTS_MULTIPLE_TRACK_COLOUR = (1uLL << 31),

RIDE_TYPE_FLAG_ALLOW_DOORS_ON_TRACK = (1uLL << 32),
Expand Down
2 changes: 1 addition & 1 deletion src/openrct2/ride/coaster/meta/ReverserRollerCoaster.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ constexpr RideTypeDescriptor ReverserRollerCoasterRTD =
}),
.InvertedTrackPaintFunctions = {},
.Flags = RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES,
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_LAYERED_VEHICLE_PREVIEW,
.RideModes = EnumsToFlags(RideMode::ContinuousCircuit),
.DefaultMode = RideMode::ContinuousCircuit,
.OperatingSettings = { 0, 0, 0, 0, 0, 0 },
Expand Down

0 comments on commit 6952170

Please sign in to comment.