Changeset - r16978:144187149c6b
[Not reviewed]
master
0 1 0
terkhen - 13 years ago 2011-01-04 21:02:10
terkhen@openttd.org
(svn r21724) -Change: Do not reset the "Show height" state after closing the smallmap window.
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/smallmap_gui.cpp
Show inline comments
 
@@ -164,13 +164,13 @@ static LegendAndColour _legend_land_owne
 
 * This is required in order to have the indutry slots all filled up
 
 */
 
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];
 

	
 
/**
 
 * Fills an array for the industries legends.
 
 */
 
@@ -1050,13 +1050,12 @@ public:
 

	
 
	SmallMapWindow(const WindowDesc *desc, int window_number) : Window(), refresh(FORCE_REFRESH_PERIOD)
 
	{
 
		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);
 

	
 
		this->SetWidgetLoweredState(SM_WIDGET_TOGGLETOWNNAME, this->show_towns);
 

	
 
		this->SetupWidgetData();
0 comments (0 inline, 0 general)