summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-05-13 18:19:26 +0000
committerDarkvater <darkvater@openttd.org>2005-05-13 18:19:26 +0000
commit950dcd47eb933866f299fd4533cafdaecd99ea60 (patch)
treee234c80ca4def2427d6510958cb6e81e3aacb0f4
parent0ff942f5606d4b7abf56a2ea34e46fa64dd9feea (diff)
downloadopenttd-950dcd47eb933866f299fd4533cafdaecd99ea60.tar.xz
(svn r2304) - Fix (regression): excuse the Lumber mill from the list of raw-industries build-restriction, as it can be built always, patch-setting, or no patch-setting.
-rw-r--r--industry_cmd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/industry_cmd.c b/industry_cmd.c
index dda5e84d5..1b5dfb2b1 100644
--- a/industry_cmd.c
+++ b/industry_cmd.c
@@ -1576,9 +1576,10 @@ int32 CmdBuildIndustry(int x, int y, uint32 flags, uint32 p1, uint32 p2)
spec = &_industry_spec[p1];
/* If the patch for non-raw-material industries is not on, you cannot build raw-material industries.
- * Raw material industries are industries that do not accept cargo (at least for now) */
+ * Raw material industries are industries that do not accept cargo (at least for now)
+ * Exclude industry 25, which is the lumber mill (only "raw" industry that can be built)*/
if (!_patches.build_rawmaterial_ind && spec->accepts_cargo[0] == 255 &&
- spec->accepts_cargo[1] == 255 && spec->accepts_cargo[2] == 255) return CMD_ERROR;
+ spec->accepts_cargo[1] == 255 && spec->accepts_cargo[2] == 255 && p1 != 25) return CMD_ERROR;
if (!_check_new_industry_procs[spec->check_proc](tile, p1)) return CMD_ERROR;