summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-08 05:24:17 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-08 05:30:38 +0100
commitc1e13470835e18ac0077bf77ce8f77db07144bcf (patch)
tree17ce9ce0097f4a94bbc5d28bdd1765f26a9aedec
parent01ad5e60b4e9363dc1a0e3122eb65da1d5f49b92 (diff)
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 <duskcoder@gmail.com>
-rw-r--r--actions.c2
1 files changed, 0 insertions, 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;