diff options
author | rubidium <rubidium@openttd.org> | 2007-07-24 19:56:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-24 19:56:43 +0000 |
commit | fe8e2979954ed2e129af7a23ec76c6aea73c36da (patch) | |
tree | c3eb0b717ba232c1a35aae37f75f9c5c10ed767e /src/industry_gui.cpp | |
parent | 5d3f058b65c97b61709061b721d1ad6922dbc9ef (diff) | |
download | openttd-fe8e2979954ed2e129af7a23ec76c6aea73c36da.tar.xz |
(svn r10675) -Codechange: unhardcode the industry types used in several locations of the source code.
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r-- | src/industry_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 600878eae..7b98af0be 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -114,7 +114,7 @@ static void BuildDynamicIndustryWndProc(Window *w, WindowEvent *e) /* We'll perform two distinct loops, one for secondary industries, and the other one for * primary ones. Each loop will fill the _fund_gui structure. */ - for (ind = IT_COAL_MINE; ind < NUM_INDUSTRYTYPES; ind++) { + for (ind = 0; ind < NUM_INDUSTRYTYPES; ind++) { indsp = GetIndustrySpec(ind); if (indsp->enabled && (!indsp->IsRawIndustry() || _game_mode == GM_EDITOR)) { _fund_gui.index[_fund_gui.count] = ind; @@ -124,7 +124,7 @@ static void BuildDynamicIndustryWndProc(Window *w, WindowEvent *e) } if (_patches.raw_industry_construction != 0 && _game_mode != GM_EDITOR) { - for (ind = IT_COAL_MINE; ind < NUM_INDUSTRYTYPES; ind++) { + for (ind = 0; ind < NUM_INDUSTRYTYPES; ind++) { indsp = GetIndustrySpec(ind); if (indsp->enabled && indsp->IsRawIndustry()) { _fund_gui.index[_fund_gui.count] = ind; |