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;
|
region *r = src->region;
|
||||||
|
|
||||||
if (itype == olditemtype[I_HORSE]){
|
/* horses are given to the region via itype->give! */
|
||||||
rsethorses(r, rhorses(r) + n);
|
|
||||||
} else if (itype->rtype==r_silver) {
|
if (itype->rtype==r_silver) {
|
||||||
rsetmoney(r, rmoney(r) + n);
|
rsetmoney(r, rmoney(r) + n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -616,8 +616,9 @@ rmoney(const region * r)
|
||||||
void
|
void
|
||||||
rsethorses(region *r, int value)
|
rsethorses(region *r, int value)
|
||||||
{
|
{
|
||||||
assert(r->land != NULL && value >= 0);
|
assert(value >= 0);
|
||||||
r->land->horses = value;
|
if(r->land)
|
||||||
|
r->land->horses = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue