mirror of https://github.com/OpenTTD/OpenTTD
(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
parent
3d34b9e4a2
commit
df8c4bdbfa
|
@ -59,6 +59,7 @@ static void GenerateDesertArea(TileIndex end, TileIndex start)
|
||||||
MarkTileDirtyByTile(tile);
|
MarkTileDirtyByTile(tile);
|
||||||
}
|
}
|
||||||
_generating_world = false;
|
_generating_world = false;
|
||||||
|
InvalidateWindowClassesData(WC_TOWN_VIEW, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Scenario editor command that generates rocky areas */
|
/** Scenario editor command that generates rocky areas */
|
||||||
|
|
|
@ -525,7 +525,7 @@ public:
|
||||||
|
|
||||||
virtual void OnInvalidateData(int data = 0)
|
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->SetDirty(); // refresh display for current size. This will allow to avoid glitches when downgrading
|
||||||
this->ResizeWindowAsNeeded();
|
this->ResizeWindowAsNeeded();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue