(svn r11276) -Codechange: be more consistent with naming of some accessors.
-Fix: make sure canals are never owned by water. Based on a patch by boekabart.
This commit is contained in:
@@ -1236,11 +1236,11 @@ static bool CheckIfIndustryTilesAreFree(TileIndex tile, const IndustryTileTable
|
||||
/* 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;
|
||||
if (!IsWaterTile(cur_tile)) return false;
|
||||
} else {
|
||||
Slope tileh;
|
||||
|
||||
if (IsClearWaterTile(cur_tile)) return false;
|
||||
if (IsWaterTile(cur_tile)) return false;
|
||||
|
||||
tileh = GetTileSlope(cur_tile, NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user