mirror of https://github.com/OpenTTD/OpenTTD
(svn r17444) -Fix [FS#3173]: when building roads isn't allowed for town, then don't build the initial piece either
parent
130781102e
commit
1474be7ea7
|
@ -1315,6 +1315,7 @@ static bool GrowTown(Town *t)
|
||||||
|
|
||||||
/* No road available, try to build a random road block by
|
/* No road available, try to build a random road block by
|
||||||
* clearing some land and then building a road there. */
|
* clearing some land and then building a road there. */
|
||||||
|
if (_settings_game.economy.allow_town_roads || _generating_world) {
|
||||||
tile = t->xy;
|
tile = t->xy;
|
||||||
for (ptr = _town_coord_mod; ptr != endof(_town_coord_mod); ++ptr) {
|
for (ptr = _town_coord_mod; ptr != endof(_town_coord_mod); ++ptr) {
|
||||||
/* Only work with plain land that not already has a house */
|
/* Only work with plain land that not already has a house */
|
||||||
|
@ -1327,6 +1328,7 @@ static bool GrowTown(Town *t)
|
||||||
}
|
}
|
||||||
tile = TILE_ADD(tile, ToTileIndexDiff(*ptr));
|
tile = TILE_ADD(tile, ToTileIndexDiff(*ptr));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_current_company = old_company;
|
_current_company = old_company;
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue