From 469c04478a028cbc03f2e313d3946b007b2e8854 Mon Sep 17 00:00:00 2001 From: maedhros Date: Sun, 29 Apr 2007 09:18:52 +0000 Subject: [PATCH] (svn r9743) -Fix [FS#598]: Stop flooded towns from building roads on water. --- src/town_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index d86e4c7746..7b220ab9c2 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;