1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Convert flags field to FlagHolder

This commit is contained in:
Spacek531
2025-11-10 22:47:22 -08:00
committed by Gymnasiast
parent 2820bdc8e2
commit fa124330fa
13 changed files with 235 additions and 154 deletions

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++)
{