1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 15:24:30 +01:00

Use RIDE_TYPE_FLAG_IS_TOILET

This commit is contained in:
frutiemax
2022-07-31 12:30:51 -04:00
committed by Gymnasiast
parent f8675d7e8e
commit 76104cbbee
8 changed files with 24 additions and 13 deletions

View File

@@ -2222,7 +2222,9 @@ void PaintTrack(paint_session& session, Direction direction, int32_t height, con
if (lightfx_is_available())
{
uint8_t zOffset = 16;
if (ride->type == RIDE_TYPE_TOILETS || ride->type == RIDE_TYPE_FIRST_AID || ride->type == RIDE_TYPE_CASH_MACHINE)
const auto& rtd = ride->GetRideTypeDescriptor();
if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_TOILET) || ride->type == RIDE_TYPE_FIRST_AID
|| rtd.HasFlag(RIDE_TYPE_FLAG_IS_CASH_MACHINE))
zOffset = 23;
if (ride->type == RIDE_TYPE_INFORMATION_KIOSK)