1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-21 03:12:41 +01:00

Codechange: Use EnumBitSet for WindowFlags.

This commit is contained in:
Peter Nelson
2025-01-29 23:36:47 +00:00
committed by Peter Nelson
parent 248f369e86
commit efb05396a7
21 changed files with 81 additions and 80 deletions

View File

@@ -536,7 +536,7 @@ struct CheatWindow : Window {
value ^= 1;
} else {
/* don't allow too fast scrolling */
if ((this->flags & WF_TIMEOUT) && this->timeout_timer > 1) {
if (this->flags.Test(WindowFlag::Timeout) && this->timeout_timer > 1) {
_left_button_clicked = false;
return;
}