This happened when fire command failed becayse the gun lacked shells,
and when other ways to fire failed because the gun was inefficient,
embarked, lacked mil, guns or shells.
Broken in commit
b8bdc32b, hvy-metal-2.4.
range2 = -1;
}
- lnd_unlimber(&fland);
dam = lnd_fire(&fland);
putland(fland.lnd_uid, &fland);
if (dam < 0) {
if (fp)
dam2 = fp->defdam;
else {
- lnd_unlimber(&land);
dam2 = lnd_fire(&land);
putland(land.lnd_uid, &land);
}
I_SHELL, ammo - shells);
if (shells == 0)
return -1;
+ lnd_unlimber(lp);
d = landunitgun(lp->lnd_effic, guns);
if (shells < ammo) {
d *= (double)shells / (double)ammo;
if (dist > range)
continue;
- lnd_unlimber(&land);
dam2 = lnd_fire(&land);
putland(land.lnd_uid, &land);
if (dam2 < 0)
if (md > range)
continue;
- lnd_unlimber(lp);
dam2 = lnd_fire(lp);
putland(lp->lnd_uid, lp);
if (dam2 < 0)