forked from github/server
last commit, a little cleaner
This commit is contained in:
parent
554979a100
commit
387ba63313
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue