Convert flags field to FlagHolder

This commit is contained in:
Spacek531 authored and Gymnasiast committed 2025-12-12 18:35:40 +01:00
1 parent 2820bdc8e2
commit fa124330fa
13 files changed
+235 -154

No files matched your search

+3 -2
View File
@@ -650,8 +650,9 @@ namespace OpenRCT2::Ui::Windows
auto bits = trackBlock.quarterTile.Rotate(curTrackRotation & 3).GetBaseQuarterOccupied();
// Station track is a lighter colour
uint8_t colour = (ted.sequences[0].flags & TRACK_SEQUENCE_FLAG_ORIGIN) ? kPaletteIndexColourStation
: kPaletteIndexColourTrack;
uint8_t colour = ted.sequences[0].flags.has(SequenceFlag::TRACK_SEQUENCE_FLAG_ORIGIN)
? kPaletteIndexColourStation
: kPaletteIndexColourTrack;
for (int32_t i = 0; i < 4; i++)
{