1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00

Replace ride_type_has_flag() with retrieving RTD

This commit is contained in:
Gymnasiast
2021-02-26 09:49:09 +01:00
parent b1ab20ec27
commit f118b2ede4
20 changed files with 37 additions and 51 deletions

View File

@@ -60,7 +60,7 @@ static void setup_track_manager_objects()
for (auto rideType : item->RideInfo.RideType)
{
if (rideType != RIDE_TYPE_NULL && ride_type_has_flag(rideType, RIDE_TYPE_FLAG_HAS_TRACK))
if (GetRideTypeDescriptor(rideType).HasFlag(RIDE_TYPE_FLAG_HAS_TRACK))
{
*selectionFlags &= ~OBJECT_SELECTION_FLAG_6;
break;