From dfab45dc0cd4883b39eeb4247eb5e1af4dec9aaa Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 22 Sep 2016 09:41:30 +0200 Subject: [PATCH] actually don't call old_race anymore --- src/monster.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/monster.c b/src/monster.c index afb0674c9..42e334fde 100644 --- a/src/monster.c +++ b/src/monster.c @@ -170,19 +170,7 @@ static void scared_by_monster(unit * u) if (a) { n = rng_int() & a->data.i * u->number; } else { - switch (old_race(u_race(u))) { - case RC_FIREDRAGON: - n = rng_int() % 160 * u->number; - break; - case RC_DRAGON: - n = rng_int() % 400 * u->number; - break; - case RC_WYRM: - n = rng_int() % 1000 * u->number; - break; - default: - n = rng_int() % (u->number / 4 + 1); - } + n = rng_int() % (u->number / 4 + 1); } if (n > 0) { n = lovar(n);