(multifire): After charging ship mobility (option NOMOBCOST off), the

code sometimes failed to call putship().  Firing at ships was usually
free.
This commit is contained in:
Markus Armbruster 2004-05-10 19:48:42 +00:00
parent d7e697b1f9
commit 1639c26424

View file

@ -378,9 +378,9 @@ multifire(void)
dam = (int)guneff;
shell -= ldround(((double)shots) / 2.0, 1);
fship.shp_item[I_SHELL] = shell;
putship(fship.shp_uid, &fship);
if (opt_NOMOBCOST == 0)
fship.shp_mobil = max(fship.shp_mobil - 15, -100);
putship(fship.shp_uid, &fship);
} else if (attacker == targ_unit) {
if (fland.lnd_own != player->cnum) {
pr("Not your unit!\n");