Changeset - r16051:3c04f03d2f40
[Not reviewed]
master
0 1 0
yexo - 14 years ago 2010-09-06 15:23:16
yexo@openttd.org
(svn r20754) -Fix [FS#4112]: assert when an industry previously build on water was flooded because it's grf changed/is missing
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/industry_cmd.cpp
Show inline comments
 
@@ -785,6 +785,12 @@ static void TileLoop_Industry(TileIndex 
 
{
 
	if (IsTileOnWater(tile)) TileLoop_Water(tile);
 

	
 
	/* Normally this doesn't happen, but if an industry NewGRF is removed
 
	 * an industry that was previously build on water can now be flooded.
 
	 * If this happens the tile is no longer an industry tile after
 
	 * returning from TileLoop_Water. */
 
	if (!IsTileType(tile, MP_INDUSTRY)) return;
 

	
 
	TriggerIndustryTile(tile, INDTILE_TRIGGER_TILE_LOOP);
 

	
 
	if (!IsIndustryCompleted(tile)) {
0 comments (0 inline, 0 general)