From 098f7202b1bbe90dbd810fd1182c30bb0ffb4129 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Sun, 5 Dec 2004 14:14:19 +0000 Subject: [PATCH] (scuttle_tradeships): calculate ally percentage before ally bonus is applied. Change to match the description in the info page. --- src/lib/commands/scut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/scut.c b/src/lib/commands/scut.c index f8f202d47..710466aaa 100644 --- a/src/lib/commands/scut.c +++ b/src/lib/commands/scut.c @@ -90,8 +90,8 @@ scuttle_tradeship(struct shpstr *sp, int interactive) cash *= (((float)sp->shp_effic) / 100.0); if (sect.sct_own != sp->shp_own) { - cash *= (1.0 + trade_ally_bonus); ally_cash = cash * trade_ally_cut; + cash *= (1.0 + trade_ally_bonus); } } -- 2.43.0