forked from github/server
on the Rapsberry Pi, long is only 32 bit
This commit is contained in:
parent
da81537c92
commit
bd98cf1fbc
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue