forked from github/server
- An die Region gegebene Pferde wurden doppelt zugeschlagen.
This commit is contained in:
parent
c220337647
commit
4a5c670d99
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -616,8 +616,9 @@ rmoney(const region * r)
|
|||
void
|
||||
rsethorses(region *r, int value)
|
||||
{
|
||||
assert(r->land != NULL && value >= 0);
|
||||
r->land->horses = value;
|
||||
assert(value >= 0);
|
||||
if(r->land)
|
||||
r->land->horses = value;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue