From c1e13470835e18ac0077bf77ce8f77db07144bcf Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 8 Jan 2015 05:24:17 +0100 Subject: fix buggy behaviour in compute_damages we forgot to remove the old version of the computation regarding the affinities (aka. using the affinity as a coefficient). fixed by removing the old version. Signed-off-by: Olivier Gayot --- actions.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/actions.c b/actions.c index d1ebab1..b70758a 100644 --- a/actions.c +++ b/actions.c @@ -109,8 +109,6 @@ int compute_damages(const struct character_t *src, const struct character_t *des default: abort(); } - - avg *= (dest->affinities[element] - 1); } min = avg - avg / 4; -- cgit v1.2.3