Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated cities have at least size 2 #51769

Merged
merged 1 commit into from
Sep 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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