Follow gui.population_in_label setting when showing rating in town label

This commit is contained in:
Jonathan G Rennison
2019-03-13 18:41:44 +00:00
parent e3b85f617b
commit 80dc7d89ef
4 changed files with 16 additions and 1 deletions

View File

@@ -125,7 +125,7 @@ struct Town : TownPool::PoolItem<&_town_pool> {
*/
inline StringID Label() const{
if (!(_game_mode == GM_EDITOR) && (_local_company < MAX_COMPANIES)) {
return STR_VIEWPORT_TOWN_POP_VERY_POOR_RATING + this->town_label;
return (_settings_client.gui.population_in_label ? STR_VIEWPORT_TOWN_POP_VERY_POOR_RATING : STR_VIEWPORT_TOWN_VERY_POOR_RATING) + this->town_label;
} else {
return _settings_client.gui.population_in_label ? STR_VIEWPORT_TOWN_POP : STR_VIEWPORT_TOWN;
}