mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-21 11:22:45 +01:00
Add: Setting to control minimum distance between towns. (#14893)
Backported from JGRPP.
This commit is contained in:
@@ -2124,7 +2124,7 @@ static CommandCost TownCanBePlacedHere(TileIndex tile, bool check_surrounding)
|
||||
}
|
||||
|
||||
/* Check distance to all other towns. */
|
||||
if (IsCloseToTown(tile, 20)) {
|
||||
if (IsCloseToTown(tile, _settings_game.economy.town_min_distance)) {
|
||||
return CommandCost(STR_ERROR_TOO_CLOSE_TO_ANOTHER_TOWN);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user