(dchr): Negative d_cost now means that only deity can designate.

(nullify_objects, do_desi): Simpify designate restrictions of options
NO_LCMS, NO_HCMS, NO_OIL.

(show_sect_build): Suppress printing of sectors only deity can
designate.  This was broken in rev. 1.15.
This commit is contained in:
Ron Koenderink 2004-10-29 01:38:06 +00:00
parent 8179063330
commit 8d792e1b9f
4 changed files with 26 additions and 53 deletions

View file

@ -397,6 +397,14 @@ nullify_objects(void)
dchr[SCT_CAPIT].d_hcms = bigcity_dchr.d_hcms;
dchr[SCT_CAPIT].d_name = bigcity_dchr.d_name;
}
if (opt_NO_LCMS)
dchr[SCT_LIGHT].d_cost = -1;
if (opt_NO_HCMS)
dchr[SCT_HEAVY].d_cost = -1;
if (opt_NO_OIL) {
dchr[SCT_OIL].d_cost = -1;
dchr[SCT_REFINE].d_cost = -1;
}
for (i = 0; i < pln_maxno; i++) {
if (opt_NO_HCMS)
plchr[i].pl_hcm = 0;