mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-22 04:32:47 +01:00
Codechange: Use EnumBitSet for WindowFlags.
This commit is contained in:
committed by
Peter Nelson
parent
248f369e86
commit
efb05396a7
@@ -322,7 +322,7 @@ struct SelectGameWindow : public Window {
|
||||
changed |= wid->UpdateMultilineWidgetSize(GetString(STR_INTRO_TRANSLATION), 3);
|
||||
}
|
||||
|
||||
if (changed) this->ReInit(0, 0, this->flags & WF_CENTERED);
|
||||
if (changed) this->ReInit(0, 0, this->flags.Test(WindowFlag::Centred));
|
||||
}
|
||||
|
||||
void OnClick([[maybe_unused]] Point pt, WidgetID widget, [[maybe_unused]] int click_count) override
|
||||
|
||||
Reference in New Issue
Block a user