From 387ba63313721e0848e793d6da10938f2baa992d Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 28 Sep 2009 21:47:06 +0000 Subject: [PATCH] last commit, a little cleaner --- src/common/gamecode/monster.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/gamecode/monster.c b/src/common/gamecode/monster.c index 7bbe28df7..b38c826d2 100644 --- a/src/common/gamecode/monster.c +++ b/src/common/gamecode/monster.c @@ -598,10 +598,14 @@ static void eaten_by_monster(unit * u) { /* adjustment for smaller worlds */ - double multi = RESOURCE_QUANTITY * newterrain(T_PLAIN)->size / 10000.0; + static double multi = 0.0; int n = 0; int horse = 0; + if (multi==0.0) { + multi = RESOURCE_QUANTITY * newterrain(T_PLAIN)->size / 10000.0; + } + switch (old_race(u->race)) { case RC_FIREDRAGON: n = rng_int()%80 * u->number;