summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-10-13 00:49:13 +0000
committerbelugas <belugas@openttd.org>2007-10-13 00:49:13 +0000
commita8936b771b8f17e64cfebcd0152b8d467f100932 (patch)
tree9eb8a1cf7126ffe21cae7934dcbd43de30e92336 /src/newgrf.cpp
parent838e379fcfe0f2489454d51743448199670d35ba (diff)
downloadopenttd-a8936b771b8f17e64cfebcd0152b8d467f100932.tar.xz
(svn r11251) -Fix[FS#1318]: Newindustries must not rely on the old check placement functions. It is the the job of callbacks. Therefor, upon substitution, disable the said check.
Warning, plenty of industries are going to be generated ;)
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 6d0c3ca51..09528486b 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -1853,6 +1853,9 @@ static bool IndustriesChangeInfo(uint indid, int numinfo, int prop, byte **bufp,
indsp->grf_prop.local_id = indid + i;
indsp->grf_prop.subst_id = subs_id;
indsp->grf_prop.grffile = _cur_grffile;
+ /* If the grf industry needs to check its surounding upon creation, it should
+ * rely on callbacks, not on the original placement functions */
+ indsp->check_proc = CHECK_NOTHING;
}
} break;