From 839eb8c80c7a8cb39f3218ec5ecfd5d2b42bf52b Mon Sep 17 00:00:00 2001 From: Anton Burmistrov Date: Tue, 21 Sep 2021 21:34:45 +0400 Subject: [PATCH] Ensure that cities are at least size 2 (#51769) --- src/overmap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/overmap.cpp b/src/overmap.cpp index 63c92636b97ed..6a2faf2d2303f 100644 --- a/src/overmap.cpp +++ b/src/overmap.cpp @@ -4144,7 +4144,8 @@ void overmap::place_cities() } else { // 17% huge size = size * 2; } - size = std::max( size, 1 ); + // Ensure that cities are at least size 2, as city of size 1 is just a crossroad with no buildings at all + size = std::max( size, 2 ); // TODO: put cities closer to the edge when they can span overmaps // don't draw cities across the edge of the map, they will get clipped