changeset 16988:8ff4444fea03 draft

(svn r21724) -Change: Do not reset the "Show height" state after closing the smallmap window.
author terkhen <terkhen@openttd.org>
date Tue, 04 Jan 2011 21:02:10 +0000
parents 5531290e75b2
children 2f1fc459f944
files src/smallmap_gui.cpp
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -167,7 +167,7 @@
 /** For connecting industry type to position in industries list(small map legend) */
 static uint _industry_to_list_pos[NUM_INDUSTRYTYPES];
 /** Show heightmap in industry mode of smallmap window. */
-static bool _smallmap_industry_show_heightmap;
+static bool _smallmap_industry_show_heightmap = false;
 /** For connecting company ID to position in owner list (small map legend) */
 static uint _company_to_list_pos[MAX_COMPANIES];
 
@@ -1053,7 +1053,6 @@
 		this->InitNested(desc, window_number);
 		this->LowerWidget(this->map_type + SM_WIDGET_CONTOUR);
 
-		_smallmap_industry_show_heightmap = false;
 		BuildLandLegend();
 		this->SetWidgetLoweredState(SM_WIDGET_SHOW_HEIGHT, _smallmap_industry_show_heightmap);