Mercurial > hg > openttd
diff src/town_cmd.cpp @ 16563:8e0848deda46 draft
(svn r21291) -Fix: Treat objects on water like water in more cases.
author | frosch <frosch@openttd.org> |
---|---|
date | Sun, 21 Nov 2010 18:39:12 +0000 (2010-11-21) |
parents | 389964fe107f |
children | 3a1ac9bae6cc |
line wrap: on
line diff
--- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -1123,7 +1123,7 @@ 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 @@ } /* Return if a water tile */ - if (IsWaterTile(tile)) return; + if (HasTileWaterGround(tile)) return; /* Make the roads look nicer */ rcmd = CleanUpRoadBits(tile, rcmd);