summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabda <gabda87@gmail.com>2019-03-12 20:12:34 +0100
committerPeterN <peter@fuzzle.org>2019-03-12 19:12:34 +0000
commitdea7f078f453fd80a8c399cde9ad998f59d5ace8 (patch)
treeaeb4d5cd1f107a03327b684f3c0246f5f6ea5bf8 /src
parent776fbda3244ab0d1cdc047adb3e3b9de53a7b8f6 (diff)
downloadopenttd-dea7f078f453fd80a8c399cde9ad998f59d5ace8.tar.xz
Codechange: Update town sign on population change only when population is shown (#7368)
Diffstat (limited to 'src')
-rw-r--r--src/town_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index ee2f49d93..0ae79367c 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -423,7 +423,7 @@ static void ChangePopulation(Town *t, int mod)
{
t->cache.population += mod;
InvalidateWindowData(WC_TOWN_VIEW, t->index); // Cargo requirements may appear/vanish for small populations
- t->UpdateVirtCoord();
+ if (_settings_client.gui.population_in_label) t->UpdateVirtCoord();
InvalidateWindowData(WC_TOWN_DIRECTORY, 0, 1);
}