(svn r10230) -Fix [FS#594]: terraforming wipes out canals. Now you always have to remove the canal before terraforming, instead of "just" removing the canal.
This commit is contained in:
@@ -45,6 +45,11 @@ static inline bool IsCoast(TileIndex t)
|
||||
return GetWaterTileType(t) == WATER_TILE_COAST;
|
||||
}
|
||||
|
||||
static inline bool IsCanal(TileIndex t)
|
||||
{
|
||||
return GetWaterTileType(t) == WATER_TILE_CLEAR && GetTileOwner(t) != OWNER_WATER;
|
||||
}
|
||||
|
||||
static inline bool IsClearWaterTile(TileIndex t)
|
||||
{
|
||||
return IsTileType(t, MP_WATER) && IsWater(t) && GetTileSlope(t, NULL) == SLOPE_FLAT;
|
||||
|
Reference in New Issue
Block a user