summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-24 19:56:43 +0000
committerrubidium <rubidium@openttd.org>2007-07-24 19:56:43 +0000
commit151262c1eb882f9857e74e8c59f5c5ba2b670da4 (patch)
treec3eb0b717ba232c1a35aae37f75f9c5c10ed767e /src/industry_cmd.cpp
parent59d33d0f7ce8210b1fdabc733fd8dbc7a1f18d4b (diff)
downloadopenttd-151262c1eb882f9857e74e8c59f5c5ba2b670da4.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.cpp4
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.