diff options
author | truelight <truelight@openttd.org> | 2006-08-20 11:41:34 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-08-20 11:41:34 +0000 |
commit | 81b96bf881c7fdcf0d26310c0102a48537e06247 (patch) | |
tree | 2724eb0b84631788b6b3e547ef674465399b1c89 | |
parent | ff36e72422049bb9acdbc3c3d86a4cc8e10497b9 (diff) | |
download | openttd-81b96bf881c7fdcf0d26310c0102a48537e06247.tar.xz |
(svn r5970) -Fix [FS#49]: town-growth removed houses under construction to make way for road. Not wanted behavoir (Rubidium)
-rw-r--r-- | town_cmd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/town_cmd.c b/town_cmd.c index 95bc3ec8f..cf3a919c6 100644 --- a/town_cmd.c +++ b/town_cmd.c @@ -770,9 +770,8 @@ static bool GrowTown(Town *t) // clearing some land and then building a road there. tile = t->xy; for (ptr = _town_coord_mod; ptr != endof(_town_coord_mod); ++ptr) { - // Only work with plain land that not already has a house with GetHouseConstructionTick=0 - if ((!IsTileType(tile, MP_HOUSE) || GetHouseConstructionTick(tile) != 0) && - GetTileSlope(tile, NULL) == SLOPE_FLAT) { + /* 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))) { DoCommand(tile, GenRandomRoadBits(), t->index, DC_EXEC | DC_AUTO, CMD_BUILD_ROAD); _current_player = old_player; |