# HG changeset patch # User belugas # Date 1192236553 0 # Node ID 4a6936f108a3f5e2fa85edfe2249796ef8861c26 # Parent c76b366e1737c9f18f661fd22dd390c5fae2e57a (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 ;) diff -r c76b366e1737 -r 4a6936f108a3 src/newgrf.cpp --- a/src/newgrf.cpp Fri Oct 12 20:43:01 2007 +0000 +++ b/src/newgrf.cpp Sat Oct 13 00:49:13 2007 +0000 @@ -1853,6 +1853,9 @@ 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;