forked from rosebudai/OpenRCT2-Web
Refactor RtdFlags into FlagHolder
This commit is contained in:
137 files changed
+373
-369
No files matched your search
@@ -89,7 +89,7 @@ static void SetupTrackManagerObjects()
|
||||
|
||||
for (auto rideType : item->RideInfo.RideType)
|
||||
{
|
||||
if (GetRideTypeDescriptor(rideType).HasFlag(RtdFlag::hasTrack))
|
||||
if (GetRideTypeDescriptor(rideType).flags.has(RtdFlag::hasTrack))
|
||||
{
|
||||
*selectionFlags &= ~ObjectSelectionFlags::Flag6;
|
||||
break;
|
||||
@@ -120,7 +120,7 @@ static void SetupTrackDesignerObjects()
|
||||
{
|
||||
if (rideType != kRideTypeNull)
|
||||
{
|
||||
if (GetRideTypeDescriptor(rideType).HasFlag(RtdFlag::showInTrackDesigner))
|
||||
if (GetRideTypeDescriptor(rideType).flags.has(RtdFlag::showInTrackDesigner))
|
||||
{
|
||||
*selectionFlags &= ~ObjectSelectionFlags::Flag6;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user