Add minimum town distance patch, with minor modifications

Move implicitly added value of 20 to setting default.
Adjust setting texts.

From: https://www.tt-forums.net/viewtopic.php?p=1095146#p1095146
This commit is contained in:
patch-import
2017-02-28 23:36:46 +00:00
committed by Jonathan G Rennison
parent 7f66d4bc6a
commit 7b88f7a290
5 changed files with 18 additions and 1 deletions

View File

@@ -1800,7 +1800,7 @@ static CommandCost TownCanBePlacedHere(TileIndex tile)
}
/* Check distance to all other towns. */
if (IsCloseToTown(tile, 20)) {
if (IsCloseToTown(tile, _settings_game.economy.town_min_distance)) {
return_cmd_error(STR_ERROR_TOO_CLOSE_TO_ANOTHER_TOWN);
}