forked from github/server
on the Rapsberry Pi, long is only 32 bit
This commit is contained in:
parent
f8f8f8f43f
commit
85306165d6
|
@ -1063,7 +1063,7 @@ void clone_men(const unit * u, unit * dst, int n)
|
||||||
transfer_curse(u, dst, n);
|
transfer_curse(u, dst, n);
|
||||||
}
|
}
|
||||||
set_number(dst, dst->number + n);
|
set_number(dst, dst->number + n);
|
||||||
dst->hp += (long)u->hp * n / u->number;
|
dst->hp += (long long)u->hp * n / u->number;
|
||||||
assert(dst->hp >= dst->number);
|
assert(dst->hp >= dst->number);
|
||||||
/* TODO: Das ist schnarchlahm! und gehoert nicht hierhin */
|
/* TODO: Das ist schnarchlahm! und gehoert nicht hierhin */
|
||||||
a = a_find(dst->attribs, &at_effect);
|
a = a_find(dst->attribs, &at_effect);
|
||||||
|
|
Loading…
Reference in New Issue