Mercurial > hg > openttd
changeset 19099:92bc2ad02277 draft
(svn r23953) -Fix [FS#5062]: When the population of a town changes the town view might even have to change size due to different cargo requirements.
author | frosch <frosch@openttd.org> |
---|---|
date | Wed, 15 Feb 2012 21:34:58 +0000 |
parents | 8e2a672cbee9 |
children | df0b1aa16bf6 |
files | src/town_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -380,7 +380,7 @@ static void ChangePopulation(Town *t, int mod) { t->population += mod; - SetWindowDirty(WC_TOWN_VIEW, t->index); + InvalidateWindowData(WC_TOWN_VIEW, t->index); // Cargo requirements may appear/vanish for small populations t->UpdateVirtCoord(); InvalidateWindowData(WC_TOWN_DIRECTORY, 0, 1);