on the Rapsberry Pi, long is only 32 bit

This commit is contained in:
Enno Rehling 2017-11-25 11:29:52 +01:00
parent da81537c92
commit bd98cf1fbc

View file

@ -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);