Codechange: (re)set multiple bitset flags in one call. (#14017)

This commit is contained in:
2025-04-18 14:07:57 +01:00
committed by GitHub
parent 31e716449d
commit 2c59838acb
10 changed files with 11 additions and 12 deletions

View File

@@ -1352,7 +1352,7 @@ static Rect ExpandRectWithViewportSignMargins(Rect r, ZoomLevel zoom)
static void ViewportAddTownStrings(DrawPixelInfo *dpi, const std::vector<const Town *> &towns, bool small)
{
ViewportStringFlags flags{};
if (small) flags.Set(ViewportStringFlag::Small).Set(ViewportStringFlag::Shadow);
if (small) flags.Set({ViewportStringFlag::Small, ViewportStringFlag::Shadow});
StringID stringid = !small && _settings_client.gui.population_in_label ? STR_VIEWPORT_TOWN_POP : STR_TOWN_NAME;
for (const Town *t : towns) {