equal
deleted
inserted
replaced
949 * clearing some land and then building a road there. */ |
949 * clearing some land and then building a road there. */ |
950 tile = t->xy; |
950 tile = t->xy; |
951 for (ptr = _town_coord_mod; ptr != endof(_town_coord_mod); ++ptr) { |
951 for (ptr = _town_coord_mod; ptr != endof(_town_coord_mod); ++ptr) { |
952 /* Only work with plain land that not already has a house */ |
952 /* Only work with plain land that not already has a house */ |
953 if (!IsTileType(tile, MP_HOUSE) && GetTileSlope(tile, NULL) == SLOPE_FLAT) { |
953 if (!IsTileType(tile, MP_HOUSE) && GetTileSlope(tile, NULL) == SLOPE_FLAT) { |
954 if (!CmdFailed(DoCommand(tile, 0, 0, DC_AUTO, CMD_LANDSCAPE_CLEAR))) { |
954 if (!CmdFailed(DoCommand(tile, 0, 0, DC_AUTO | DC_NO_WATER, CMD_LANDSCAPE_CLEAR))) { |
955 DoCommand(tile, GenRandomRoadBits(), t->index, DC_EXEC | DC_AUTO, CMD_BUILD_ROAD); |
955 DoCommand(tile, GenRandomRoadBits(), t->index, DC_EXEC | DC_AUTO, CMD_BUILD_ROAD); |
956 _current_player = old_player; |
956 _current_player = old_player; |
957 return true; |
957 return true; |
958 } |
958 } |
959 } |
959 } |