forked from github/server
somehow broke region.c, cannot explain how that happened
This commit is contained in:
parent
e2421b3fe7
commit
3ee07a795d
|
@ -611,8 +611,9 @@ int rpeasants(const region * r)
|
||||||
|
|
||||||
void rsetpeasants(region * r, int value)
|
void rsetpeasants(region * r, int value)
|
||||||
{
|
{
|
||||||
((r)->land ? ((r)->land->peasants =
|
if (r->land) {
|
||||||
(value)) : (assert((value) >= 0), (value)), 0);
|
r->land->peasants = value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int rmoney(const region * r)
|
int rmoney(const region * r)
|
||||||
|
@ -634,8 +635,9 @@ int rhorses(const region * r)
|
||||||
|
|
||||||
void rsetmoney(region * r, int value)
|
void rsetmoney(region * r, int value)
|
||||||
{
|
{
|
||||||
((r)->land ? ((r)->land->money =
|
if (r->land) {
|
||||||
(value)) : (assert((value) >= 0), (value)), 0);
|
r->land->money = value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void r_setdemand(region * r, const luxury_type * ltype, int value)
|
void r_setdemand(region * r, const luxury_type * ltype, int value)
|
||||||
|
|
Loading…
Reference in New Issue