Remove option LANDSPIES, customize table land-chr instead

Spy units are now enabled when a land unit type with capability spy
exists.  To disable them, deities have to customize table land-chr.

Before, spy units types were ignored when option LANDSPIES was
disabled.  Except for xdump land-chr, which happily dumped unusable
spy unit types.
This commit is contained in:
Markus Armbruster 2011-05-22 17:04:46 +02:00
parent 352bc320d2
commit 93edcf0ac4
9 changed files with 18 additions and 31 deletions

View file

@ -134,11 +134,8 @@ buil(void)
break;
case 'l':
type = ef_elt_byname(EF_LAND_CHR, p);
if (type >= 0) {
if (type >= 0)
rqtech = lchr[type].l_tech;
if ((lchr[type].l_flags & L_SPY) && !opt_LANDSPIES)
type = -1;
}
break;
case 'n':
type = ef_elt_byname(EF_NUKE_CHR, p);