forked from mirror/OpenTTD
Codechange: (re)set multiple bitset flags in one call. (#14017)
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user