1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 20:43:04 +01:00

Use FlagHolder in ColourWithFlags

This commit is contained in:
Gymnasiast
2025-10-16 23:04:06 +02:00
parent ecc2e8b311
commit 64ef3da5a4
14 changed files with 42 additions and 56 deletions

View File

@@ -93,7 +93,7 @@ namespace OpenRCT2
auto& closeButton = widgets[2];
if (closeButton.type == WidgetType::closeBox || closeButton.type == WidgetType::empty)
{
bool translucent = colours[closeButton.colour].hasFlag(ColourFlag::translucent);
bool translucent = colours[closeButton.colour].flags.has(ColourFlag::translucent);
repositionCloseButton(closeButton, width, translucent);
}