112 WP(w, fnd_d).timer_enabled = false; |
112 WP(w, fnd_d).timer_enabled = false; |
113 } |
113 } |
114 |
114 |
115 /* We'll perform two distinct loops, one for secondary industries, and the other one for |
115 /* We'll perform two distinct loops, one for secondary industries, and the other one for |
116 * primary ones. Each loop will fill the _fund_gui structure. */ |
116 * primary ones. Each loop will fill the _fund_gui structure. */ |
117 for (ind = IT_COAL_MINE; ind < NUM_INDUSTRYTYPES; ind++) { |
117 for (ind = 0; ind < NUM_INDUSTRYTYPES; ind++) { |
118 indsp = GetIndustrySpec(ind); |
118 indsp = GetIndustrySpec(ind); |
119 if (indsp->enabled && (!indsp->IsRawIndustry() || _game_mode == GM_EDITOR)) { |
119 if (indsp->enabled && (!indsp->IsRawIndustry() || _game_mode == GM_EDITOR)) { |
120 _fund_gui.index[_fund_gui.count] = ind; |
120 _fund_gui.index[_fund_gui.count] = ind; |
121 _fund_gui.enabled[_fund_gui.count] = CheckIfCallBackAllowsAvailability(ind, IACT_USERCREATION); |
121 _fund_gui.enabled[_fund_gui.count] = CheckIfCallBackAllowsAvailability(ind, IACT_USERCREATION); |
122 _fund_gui.count++; |
122 _fund_gui.count++; |
123 } |
123 } |
124 } |
124 } |
125 |
125 |
126 if (_patches.raw_industry_construction != 0 && _game_mode != GM_EDITOR) { |
126 if (_patches.raw_industry_construction != 0 && _game_mode != GM_EDITOR) { |
127 for (ind = IT_COAL_MINE; ind < NUM_INDUSTRYTYPES; ind++) { |
127 for (ind = 0; ind < NUM_INDUSTRYTYPES; ind++) { |
128 indsp = GetIndustrySpec(ind); |
128 indsp = GetIndustrySpec(ind); |
129 if (indsp->enabled && indsp->IsRawIndustry()) { |
129 if (indsp->enabled && indsp->IsRawIndustry()) { |
130 _fund_gui.index[_fund_gui.count] = ind; |
130 _fund_gui.index[_fund_gui.count] = ind; |
131 _fund_gui.enabled[_fund_gui.count] = CheckIfCallBackAllowsAvailability(ind, IACT_USERCREATION); |
131 _fund_gui.enabled[_fund_gui.count] = CheckIfCallBackAllowsAvailability(ind, IACT_USERCREATION); |
132 _fund_gui.count++; |
132 _fund_gui.count++; |