"Gib Personen an Region ohne Wirkung"
- fixed previous bugfix
This commit is contained in:
Enno Rehling 2008-02-12 17:59:41 +00:00
parent e37b55699c
commit 321723f69f

View file

@ -872,14 +872,14 @@ transfermen(unit * u, unit * u2, int n)
if ((u->race->ec_flags & ECF_REC_ETHEREAL)==0) { if ((u->race->ec_flags & ECF_REC_ETHEREAL)==0) {
const race * rc = u->race; const race * rc = u->race;
if (rc->ec_flags & ECF_REC_HORSES) { /* Zentauren an die Pferde */ if (rc->ec_flags & ECF_REC_HORSES) { /* Zentauren an die Pferde */
int h = rhorses(r) + u->number; int h = rhorses(r) + n;
rsethorses(r, h); rsethorses(r, h);
} else { } else {
int p = rpeasants(r); int p = rpeasants(r);
if (rc == new_race[RC_URUK]){ /* Orks zählen nur zur Hälfte */ if (rc == new_race[RC_URUK]){ /* Orks zählen nur zur Hälfte */
p += u->number/2; p += n/2;
} else { } else {
p += u->number; p += n;
} }
rsetpeasants(r, p); rsetpeasants(r, p);
} }