diff options
author | maedhros <maedhros@openttd.org> | 2007-04-29 09:18:52 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-04-29 09:18:52 +0000 |
commit | a469d88364ae7b420ae43b33b66878977cc7dc75 (patch) | |
tree | a288dc9c2aa479f05536f7e678947ca1e6cda61c | |
parent | 8acc58b731493bc7f08210fc24b80607728d63fb (diff) | |
download | openttd-a469d88364ae7b420ae43b33b66878977cc7dc75.tar.xz |
(svn r9743) -Fix [FS#598]: Stop flooded towns from building roads on water.
-rw-r--r-- | src/town_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index d86e4c774..7b220ab9c 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -951,7 +951,7 @@ static bool GrowTown(Town *t) for (ptr = _town_coord_mod; ptr != endof(_town_coord_mod); ++ptr) { /* Only work with plain land that not already has a house */ if (!IsTileType(tile, MP_HOUSE) && GetTileSlope(tile, NULL) == SLOPE_FLAT) { - if (!CmdFailed(DoCommand(tile, 0, 0, DC_AUTO, CMD_LANDSCAPE_CLEAR))) { + if (!CmdFailed(DoCommand(tile, 0, 0, DC_AUTO | DC_NO_WATER, CMD_LANDSCAPE_CLEAR))) { DoCommand(tile, GenRandomRoadBits(), t->index, DC_EXEC | DC_AUTO, CMD_BUILD_ROAD); _current_player = old_player; return true; |