(svn r21291) -Fix: Treat objects on water like water in more cases.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user