This can happen when hitting a sanctuary, or for ridiculously impotent
nukes: groundburst for dam < 5, airburst for dam < 7. detonate()
returned unpredictable value then.
This screwed up interdiction damage, except for missiles interdicting
ships or land units. Since nothing can move into a sanctuary, the bug
bit only with ridiculously impotent nukes.
struct nstr_sect ns;
struct nstr_item ni;
int issea;
- int retval;
getsect(x, y, §);
issea = sect.sct_type == SCT_WATER;
if (opt_FALLOUT)
fallout = sect.sct_fallout;
sect_damage(§, damage);
- if (sect.sct_x == x && sect.sct_y == y)
- retval = damage;
if (opt_FALLOUT) {
if (ncp->n_flags & N_NEUT)
fallout += damage * 30;
putnuke(ni.cur, &nuke);
}
- return retval;
+ return nukedamage(ncp, 0, airburst);
}