Skip to content

Commit

Permalink
Ensure that cities are at least size 2 (#51769)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Burmistrov authored Sep 21, 2021
1 parent b5ce160 commit 839eb8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/overmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 839eb8c

Please sign in to comment.