Changeset - r6438:364eac743a97
[Not reviewed]
master
0 1 0
belugas - 18 years ago 2007-04-08 00:29:12
belugas@openttd.org
(svn r9574) -Fix(r9520, FS#721): Oil Rig ( or industry with behaviour INDUSTRYBEH_BUILT_ONWATER) should check all tiles before leaving the test. A tile in water does not ensure that all required tiles will necessary be on water.
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/industry_cmd.cpp
Show inline comments
 
@@ -1161,7 +1161,10 @@ static bool CheckIfIndustryTilesAreFree(
 
			IndustyBehaviour ind_behav = GetIndustrySpec(type)->behaviour;
 

	
 
			if (ind_behav & INDUSTRYBEH_BUILT_ONWATER) {
 
				return IsClearWaterTile(cur_tile);
 
				/* As soon as the tile is not water, bail out.
 
				 * But that does not mean the search is over.  You have
 
				 * to make sure every tile of the industry will be only water*/
 
				if (!IsClearWaterTile(cur_tile)) return false;
 
			} else {
 
				Slope tileh;
 

	
0 comments (0 inline, 0 general)