Mercurial > hg > openttd
changeset 17190:d66fa6a6c96b draft
(svn r21929) -Fix [FS#4554]: The town window would not be invalidated in the scenario editor if the ground changed and thus the required cargos for town growth
author | planetmaker <planetmaker@openttd.org> |
---|---|
date | Sun, 30 Jan 2011 19:14:48 +0000 |
parents | 143f89021224 |
children | 2edc672accf0 |
files | src/terraform_gui.cpp src/town_gui.cpp |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/terraform_gui.cpp +++ b/src/terraform_gui.cpp @@ -59,6 +59,7 @@ MarkTileDirtyByTile(tile); } _generating_world = false; + InvalidateWindowClassesData(WC_TOWN_VIEW, 0); } /** Scenario editor command that generates rocky areas */
--- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -525,7 +525,7 @@ virtual void OnInvalidateData(int data = 0) { - /* Called when setting station noise have changed, in order to resize the window */ + /* Called when setting station noise or required cargos have changed, in order to resize the window */ this->SetDirty(); // refresh display for current size. This will allow to avoid glitches when downgrading this->ResizeWindowAsNeeded(); }