From f261bf2f5b37f7145b11e8f3cc3284524681a78f Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 26 Feb 2006 18:03:16 +0000 Subject: [PATCH] =?UTF-8?q?http://eressea.upb.de/mantis/view.php=3Fid=3D85?= =?UTF-8?q?3=20Einheiten=20die=20Goliathwasser=20benutzt=20haben=20sind=20?= =?UTF-8?q?=C3=BCberladen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Gewicht von Pferden war falsch berechnet. --- src/common/kernel/movement.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/kernel/movement.c b/src/common/kernel/movement.c index f82d02054..fe7235e2a 100644 --- a/src/common/kernel/movement.c +++ b/src/common/kernel/movement.c @@ -319,7 +319,11 @@ walkingcapacity(const struct unit * u) n += people * personcapacity(u); /* Goliathwasser */ tmp = get_effect(u, oldpotiontype[P_STRONG]); - n += min(people, tmp) * (acap - personcapacity(u)); + if (tmp>0) { + int horsecap = olditemtype[I_HORSE]->capacity; + if (tmp>people) tmp = people; + n += tmp * (horsecap - personcapacity(u)); + } /* change_effect wird in ageing gemacht */ tmp = get_item(u, I_TROLLBELT); n += min(people, tmp) * (STRENGTHMULTIPLIER-1) * personcapacity(u);