Add an optional "(City)" in Viewport labels

This commit is contained in:
Daniel Hill
2023-07-29 18:56:58 +12:00
committed by Jonathan G Rennison
parent 4d2db01a0f
commit 924b2ab9ec
6 changed files with 18 additions and 3 deletions

View File

@@ -244,6 +244,7 @@ uint64 Town::LabelParam2() const
SB(value, 32, 8, TC_WHITE);
}
if (_settings_client.gui.population_in_label) SetBit(value, 40);
if (_settings_client.gui.city_in_label && this->larger_town) SetBit(value, 41);
return value;
}