src/industry_gui.cpp
changeset 10498 f198d0a1aab7
parent 10493 afb9c852ab64
child 10504 7c80c8aaa1df
equal deleted inserted replaced
10497:9ab9ea3ec4d1 10498:f198d0a1aab7
   161 		/* first indutry type is selected.
   161 		/* first indutry type is selected.
   162 		 * I'll be damned if there are none available ;) */
   162 		 * I'll be damned if there are none available ;) */
   163 		this->selected_index = 0;
   163 		this->selected_index = 0;
   164 		this->selected_type = this->index[0];
   164 		this->selected_type = this->index[0];
   165 		this->callback_timer = DAY_TICKS;
   165 		this->callback_timer = DAY_TICKS;
       
   166 
       
   167 		this->FindWindowPlacementAndResize(&_build_industry_desc);
   166 	}
   168 	}
   167 
   169 
   168 	virtual void OnPaint()
   170 	virtual void OnPaint()
   169 	{
   171 	{
   170 		const IndustrySpec *indsp = (this->selected_type == INVALID_INDUSTRYTYPE) ? NULL : GetIndustrySpec(this->selected_type);
   172 		const IndustrySpec *indsp = (this->selected_type == INVALID_INDUSTRYTYPE) ? NULL : GetIndustrySpec(this->selected_type);