forked from rosebudai/OpenRCT2-Web
Change RTD flags to a strong enum
This commit is contained in:
1 parent
da8a049b81
commit
47800cddcf
140 files changed
+795
-789
No files matched your search
@@ -77,7 +77,7 @@ static void SetupTrackManagerObjects()
|
||||
|
||||
for (auto rideType : item->RideInfo.RideType)
|
||||
{
|
||||
if (GetRideTypeDescriptor(rideType).HasFlag(RIDE_TYPE_FLAG_HAS_TRACK))
|
||||
if (GetRideTypeDescriptor(rideType).HasFlag(RtdFlag::hasTrack))
|
||||
{
|
||||
*selectionFlags &= ~ObjectSelectionFlags::Flag6;
|
||||
break;
|
||||
@@ -108,7 +108,7 @@ static void SetupTrackDesignerObjects()
|
||||
{
|
||||
if (rideType != RIDE_TYPE_NULL)
|
||||
{
|
||||
if (GetRideTypeDescriptor(rideType).HasFlag(RIDE_TYPE_FLAG_SHOW_IN_TRACK_DESIGNER))
|
||||
if (GetRideTypeDescriptor(rideType).HasFlag(RtdFlag::showInTrackDesigner))
|
||||
{
|
||||
*selectionFlags &= ~ObjectSelectionFlags::Flag6;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user