- An die Region gegebene Pferde wurden doppelt zugeschlagen.

This commit is contained in:
Christian Schlittchen 2002-04-28 08:10:17 +00:00
parent c220337647
commit 4a5c670d99
2 changed files with 6 additions and 5 deletions

View File

@ -509,9 +509,9 @@ give_peasants(int n, const item_type * itype, unit * src)
{
region *r = src->region;
if (itype == olditemtype[I_HORSE]){
rsethorses(r, rhorses(r) + n);
} else if (itype->rtype==r_silver) {
/* horses are given to the region via itype->give! */
if (itype->rtype==r_silver) {
rsetmoney(r, rmoney(r) + n);
}
}

View File

@ -616,7 +616,8 @@ rmoney(const region * r)
void
rsethorses(region *r, int value)
{
assert(r->land != NULL && value >= 0);
assert(value >= 0);
if(r->land)
r->land->horses = value;
}