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

@@ -235,7 +235,7 @@ GameActions::Result RideCreateAction::Execute() const
ride->price[0] = 0;
}
if (ride->type == RIDE_TYPE_TOILETS)
if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_TOILET))
{
if (shop_item_has_common_price(ShopItem::Admission))
{