summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/terraform_gui.cpp1
-rw-r--r--src/town_gui.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/terraform_gui.cpp b/src/terraform_gui.cpp
index 11cb0a4d8..bf26910e3 100644
--- a/src/terraform_gui.cpp
+++ b/src/terraform_gui.cpp
@@ -59,6 +59,7 @@ static void GenerateDesertArea(TileIndex end, TileIndex start)
MarkTileDirtyByTile(tile);
}
_generating_world = false;
+ InvalidateWindowClassesData(WC_TOWN_VIEW, 0);
}
/** Scenario editor command that generates rocky areas */
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index 14684a294..fce2a8ce6 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -525,7 +525,7 @@ public:
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();
}