Changeset - r7716:ed3fc446f961
[Not reviewed]
master
0 1 0
belugas - 17 years ago 2007-10-13 00:49:13
belugas@openttd.org
(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 ;)
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/newgrf.cpp
Show inline comments
 
@@ -1853,6 +1853,9 @@ static bool IndustriesChangeInfo(uint in
 
					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;
 

	
0 comments (0 inline, 0 general)