(cens, desi, dump, do_desi, doland, file_sct_init, grow_continents)
(grow_islands, set_coastal, update_coastal_flag, coast_sea_to_land) (coast_land_to_sea): Determine sct_coastal flag when the sector type is set. Old method only updated the sct_coastal flag when doing cens() or a dump(). Other uses of sct_coastal could get stale values, including selector coastal. Rework set_coastal() into NEW functions update_coastal_flag(), coast_sea_to_land(), coast_land_to_sea() and set_coastal(). Fix a bug where the deity designation would not properly set the coastal flag. Fix a bug where the one sector lake would not properly compute coastal flag. Fix a bug that makes fairland treat the last sector it adds to an island as non-coastal.
This commit is contained in:
parent
8f98e53a23
commit
7b94794365
9 changed files with 146 additions and 37 deletions
|
@ -203,4 +203,6 @@ file_sct_init(coord x, coord y, s_char *ptr, time_t timestamp)
|
|||
sp->sct_dist_x = x;
|
||||
sp->sct_dist_y = y;
|
||||
sp->sct_timestamp = timestamp;
|
||||
sp->sct_newtype = sp->sct_type = SCT_WATER;
|
||||
sp->sct_coastal = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue