Changeset - r17180:60a530ef772d
[Not reviewed]
master
0 2 0
planetmaker - 14 years ago 2011-01-30 19:14:48
planetmaker@openttd.org
(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
2 files changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/terraform_gui.cpp
Show inline comments
 
@@ -59,6 +59,7 @@ static void GenerateDesertArea(TileIndex
 
		MarkTileDirtyByTile(tile);
 
	}
 
	_generating_world = false;
 
	InvalidateWindowClassesData(WC_TOWN_VIEW, 0);
 
}
 

	
 
/** Scenario editor command that generates rocky areas */
src/town_gui.cpp
Show inline comments
 
@@ -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();
 
	}
0 comments (0 inline, 0 general)