Add: Setting to control minimum distance between towns. (#14893)

Backported from JGRPP.
This commit is contained in:
Peter Nelson
2025-12-11 11:28:04 +00:00
committed by GitHub
parent a2304154d4
commit ef4687895e
5 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -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);
}