(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:
Ron Koenderink 2005-11-17 03:21:32 +00:00
parent 8f98e53a23
commit 7b94794365
9 changed files with 146 additions and 37 deletions

View file

@ -169,6 +169,8 @@ do_desi(struct natstr *natp, s_char *sects, s_char *deschar, long int cash,
}
}
if (sect.sct_type != des && (sect.sct_effic < 5 || player->god)) {
if (player->god)
set_coastal(&sect, des);
sect.sct_type = des;
sect.sct_effic = 0;
changed += map_set(player->cnum, sect.sct_x, sect.sct_y,