src/industry_gui.cpp
changeset 7289 9d5fe9be6f2f
parent 7284 d7903fff2d0b
child 7319 9b20d1dbe5d6
equal deleted inserted replaced
7288:9059a49c2102 7289:9d5fe9be6f2f
   151 
   151 
   152 			/* Raw industries might be prospected. Show this fact by changing the string
   152 			/* Raw industries might be prospected. Show this fact by changing the string
   153 			 * In Editor, you just build, while ingame, or you fund or you prospect */
   153 			 * In Editor, you just build, while ingame, or you fund or you prospect */
   154 			if (_game_mode == GM_EDITOR) {
   154 			if (_game_mode == GM_EDITOR) {
   155 				/* We've chosen many random industries but no industries have been specified */
   155 				/* We've chosen many random industries but no industries have been specified */
   156 				if (indsp == NULL && _patches.raw_industry_construction == 0) {
   156 				if (indsp == NULL) _fund_gui.enabled[WP(w, fnd_d).index] = _opt.diff.number_industries != 0;
   157 					_fund_gui.enabled[WP(w, fnd_d).index] = false;
       
   158 				}
       
   159 				w->widget[DYNA_INDU_FUND_WIDGET].data = STR_BUILD_NEW_INDUSTRY;
   157 				w->widget[DYNA_INDU_FUND_WIDGET].data = STR_BUILD_NEW_INDUSTRY;
   160 			} else {
   158 			} else {
   161 				w->widget[DYNA_INDU_FUND_WIDGET].data = (_patches.raw_industry_construction == 2 && indsp->IsRawIndustry()) ? STR_PROSPECT_NEW_INDUSTRY : STR_FUND_NEW_INDUSTRY;
   159 				w->widget[DYNA_INDU_FUND_WIDGET].data = (_patches.raw_industry_construction == 2 && indsp->IsRawIndustry()) ? STR_PROSPECT_NEW_INDUSTRY : STR_FUND_NEW_INDUSTRY;
   162 			}
   160 			}
   163 			SetWindowWidgetDisabledState(w, DYNA_INDU_FUND_WIDGET, !_fund_gui.enabled[WP(w, fnd_d).index]);
   161 			SetWindowWidgetDisabledState(w, DYNA_INDU_FUND_WIDGET, !_fund_gui.enabled[WP(w, fnd_d).index]);