last commit, a little cleaner

This commit is contained in:
Enno Rehling 2009-09-28 21:47:06 +00:00
parent 554979a100
commit 387ba63313
1 changed files with 5 additions and 1 deletions

View File

@ -598,10 +598,14 @@ static void
eaten_by_monster(unit * u) eaten_by_monster(unit * u)
{ {
/* adjustment for smaller worlds */ /* adjustment for smaller worlds */
double multi = RESOURCE_QUANTITY * newterrain(T_PLAIN)->size / 10000.0; static double multi = 0.0;
int n = 0; int n = 0;
int horse = 0; int horse = 0;
if (multi==0.0) {
multi = RESOURCE_QUANTITY * newterrain(T_PLAIN)->size / 10000.0;
}
switch (old_race(u->race)) { switch (old_race(u->race)) {
case RC_FIREDRAGON: case RC_FIREDRAGON:
n = rng_int()%80 * u->number; n = rng_int()%80 * u->number;