# HG changeset patch # User Alys Brooks # Date 2022-11-27 22:57:45 # Node ID f9401e682f4b865de42e2ffce4476fa66af728c8 # Parent 4bbcf0283f699e0bf4954a2efb2dea6f5d77ee57 Improve water generation. ?Fix bug cause incongrous coastlines (i.e., coastline that doesn't line up with surrounding tiles). ?Randomly choose between open water tiles. diff --git a/isometric-park-fna/FNAGame.cs b/isometric-park-fna/FNAGame.cs --- a/isometric-park-fna/FNAGame.cs +++ b/isometric-park-fna/FNAGame.cs @@ -626,7 +626,13 @@ if (northwest && northeast && southwest && southeast) { - tile_index = 85; + //There are two "open water" squares + if (((y % 5) == 0) && ((x % 3) == 0)) { + tile_index = 84; + } + else { + tile_index = 85; + } } else if (northwest && northeast && southwest && !southeast) { tile_index = 82; @@ -656,7 +662,7 @@ tile_index = 92; } else if (!northwest && northeast && !southwest && southeast) { - tile_index = 94; + tile_index = 83; } else if (!northwest && northeast && !southwest && !southeast) { tile_index = 95; //not really correct