mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-10 06:52:05 +01:00
Fix: always try to create at least one town
This commit is contained in:
@@ -2448,7 +2448,7 @@ bool GenerateTowns(TownLayout layout, std::optional<uint> number)
|
|||||||
total = Map::ScaleByLandProportion(GetDefaultTownsForMapSize() + (Random() & 7));
|
total = Map::ScaleByLandProportion(GetDefaultTownsForMapSize() + (Random() & 7));
|
||||||
}
|
}
|
||||||
|
|
||||||
total = std::min<uint>(TownPool::MAX_SIZE, total);
|
total = Clamp<uint>(total, 1, TownPool::MAX_SIZE);
|
||||||
uint32_t townnameparts;
|
uint32_t townnameparts;
|
||||||
TownNames town_names;
|
TownNames town_names;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user