(svn r21291) -Fix: Treat objects on water like water in more cases.

This commit is contained in:
frosch
2010-11-21 18:39:12 +00:00
parent 5a355daa5b
commit 0ebd5af86f
3 changed files with 5 additions and 5 deletions

View File

@@ -1123,7 +1123,7 @@ static void GrowTownInTile(TileIndex *tile_ptr, RoadBits cur_rb, DiagDirection t
TileIndex house_tile = TileAddByDiagDir(tile, target_dir); // position of a possible house
/* Don't walk into water. */
if (IsWaterTile(house_tile)) return;
if (HasTileWaterGround(house_tile)) return;
if (!IsValidTile(house_tile)) return;
@@ -1172,7 +1172,7 @@ static void GrowTownInTile(TileIndex *tile_ptr, RoadBits cur_rb, DiagDirection t
}
/* Return if a water tile */
if (IsWaterTile(tile)) return;
if (HasTileWaterGround(tile)) return;
/* Make the roads look nicer */
rcmd = CleanUpRoadBits(tile, rcmd);