Prevent towns being placed in the ocean just off the coast.

This commit is contained in:
Tormod G. Hellen 2022-03-12 02:40:51 +01:00
parent 5e3ef83195
commit 5f12163e54

View File

@ -481,7 +481,7 @@ impl Civs {
) -> Option<Id<Civ>> { ) -> Option<Id<Civ>> {
let kind = SiteKind::Refactor; let kind = SiteKind::Refactor;
let site = attempt(100, || { let site = attempt(100, || {
let loc = find_site_loc(ctx, (start_locations, 60), 1, kind)?; let loc = find_site_loc(ctx, (start_locations, 60), 0, kind)?;
start_locations.push(loc); start_locations.push(loc);
Some(self.establish_site(ctx, loc, |place| Site { Some(self.establish_site(ctx, loc, |place| Site {
kind, kind,