mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 23:04:36 +01:00
Simplify boolean expresions
This commit is contained in:
committed by
Michael Steenbeek
parent
9af568d97c
commit
6833da77e3
@@ -1460,10 +1460,7 @@ static bool filter_chunks(const ObjectRepositoryItem* item)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (_filter_flags & (1 << (gRideCategories[rideType] + _numSourceGameItems)))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return (_filter_flags & (1 << (gRideCategories[rideType] + _numSourceGameItems))) != 0;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user