diff options
author | terkhen <terkhen@openttd.org> | 2011-01-04 21:02:10 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2011-01-04 21:02:10 +0000 |
commit | aac2289bf8f0aa195e54bdb8a749846dbcb1daef (patch) | |
tree | c0e435324a4c00c4d4cd69d55db10bdc265b4fbb /src/smallmap_gui.cpp | |
parent | 38ed740e80e47895a04a702957014a411c0fba3f (diff) | |
download | openttd-aac2289bf8f0aa195e54bdb8a749846dbcb1daef.tar.xz |
(svn r21724) -Change: Do not reset the "Show height" state after closing the smallmap window.
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r-- | src/smallmap_gui.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 7c93166bb..1c321e368 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -167,7 +167,7 @@ static LegendAndColour _legend_from_industries[NUM_INDUSTRYTYPES + 1]; /** 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 @@ public: 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); |