From ff472696b2006103bb77a79f2cf20b2639e18045 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 12 Feb 2005 13:52:22 +0000 Subject: [PATCH] http://eressea.upb.de/mantis/view.php?id=382 - Bewacher hielten getarnte Einheiten mit zu hoher Chance auf. --- src/common/kernel/movement.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/kernel/movement.c b/src/common/kernel/movement.c index a3ba35719..ceb8cc73e 100644 --- a/src/common/kernel/movement.c +++ b/src/common/kernel/movement.c @@ -808,7 +808,7 @@ bewegung_blockiert_von(unit * reisender, region * r) if (!contact && guard) { double prob = 0.3; /* 30% base chance */ prob += 0.1 * (perception - eff_stealth(reisender, r)); - prob += 0.1 * max(guard->number, get_item(guard, I_AMULET_OF_TRUE_SEEING)); + prob += 0.1 * min(guard->number, get_item(guard, I_AMULET_OF_TRUE_SEEING)); if (chance(prob)) { return guard;