summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-04-29 09:18:52 +0000
committermaedhros <maedhros@openttd.org>2007-04-29 09:18:52 +0000
commit469c04478a028cbc03f2e313d3946b007b2e8854 (patch)
treea288dc9c2aa479f05536f7e678947ca1e6cda61c
parent02e770ff2cf77776252d1481456817950bf138a9 (diff)
downloadopenttd-469c04478a028cbc03f2e313d3946b007b2e8854.tar.xz
(svn r9743) -Fix [FS#598]: Stop flooded towns from building roads on water.
-rw-r--r--src/town_cmd.cpp2
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;