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_cmd.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_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index a6ef9c2a5..958f1a013 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1669,7 +1669,7 @@ void GenerateIndustries() /* Find the total amount of industries */ if (_opt.diff.number_industries > 0) { - for (it = IT_COAL_MINE; it < NUM_INDUSTRYTYPES; it++) { + for (it = 0; it < NUM_INDUSTRYTYPES; it++) { ind_spc = GetIndustrySpec(it); @@ -1694,7 +1694,7 @@ void GenerateIndustries() SetGeneratingWorldProgress(GWP_INDUSTRY, i); if (_opt.diff.number_industries > 0) { - for (it = IT_COAL_MINE; it < NUM_INDUSTRYTYPES; it++) { + for (it = 0; it < NUM_INDUSTRYTYPES; it++) { /* Once the number of industries has been determined, let's really create them. * The test for chance allows us to try create industries that are available only * for this landscape. |