Codechange: Use EnumBitSet for picker window invalidation flags.

This commit is contained in:
Peter Nelson
2025-02-13 18:48:25 +00:00
committed by Peter Nelson
parent 75387b9e2b
commit 71dafdb21e
6 changed files with 30 additions and 27 deletions

View File

@@ -1081,7 +1081,6 @@ public:
{
this->coverage_height = 2 * GetCharacterHeight(FS_NORMAL) + WidgetDimensions::scaled.vsep_normal;
this->ConstructWindow();
this->InvalidateData();
}
void OnInit() override
@@ -1854,7 +1853,6 @@ struct BuildRailWaypointWindow : public PickerWindow {
BuildRailWaypointWindow(WindowDesc &desc, Window *parent) : PickerWindow(desc, parent, TRANSPORT_RAIL, WaypointPickerCallbacks::instance)
{
this->ConstructWindow();
this->InvalidateData();
}
static inline HotkeyList hotkeys{"buildrailwaypoint", {