From 1639c264247665a7c517c72a37385affdb66d24f Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 10 May 2004 19:48:42 +0000 Subject: [PATCH] (multifire): After charging ship mobility (option NOMOBCOST off), the code sometimes failed to call putship(). Firing at ships was usually free. --- src/lib/commands/mfir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/mfir.c b/src/lib/commands/mfir.c index 4d8413d2..05799837 100644 --- a/src/lib/commands/mfir.c +++ b/src/lib/commands/mfir.c @@ -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");