(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
|
@ -651,6 +651,7 @@ doland(s_char op, int arg, s_char *p, struct sctstr *sect)
|
|||
pr("Designation for sector %s changed from %c to %c\n",
|
||||
xyas(sect->sct_x, sect->sct_y, player->cnum),
|
||||
dchr[sect->sct_type].d_mnem, dchr[des].d_mnem);
|
||||
set_coastal(sect, des);
|
||||
sect->sct_type = des;
|
||||
break;
|
||||
case 'S':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue