1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +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

@@ -2206,7 +2206,8 @@ bool Guest::ShouldGoToShop(Ride* ride, bool peepAtShop)
return false;
}
if (ride->type == RIDE_TYPE_TOILETS)
const auto& rtd = ride->GetRideTypeDescriptor();
if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_TOILET))
{
if (Toilet < 70)
{