forked from github/server
fix ahort to int converaion problems, fox PR
This commit is contained in:
parent
ad74c0a25d
commit
3fafb04b57
|
@ -635,12 +635,12 @@ void rsetmoney(region * r, int value)
|
||||||
assert(value == 0);
|
assert(value == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
short rherbs(const struct region *r)
|
int rherbs(const struct region *r)
|
||||||
{
|
{
|
||||||
return r->land?r->land->herbs:0;
|
return r->land?r->land->herbs:0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void rsetherbs(const struct region *r, short value)
|
void rsetherbs(const struct region *r, int value)
|
||||||
{
|
{
|
||||||
if (r->land) {
|
if (r->land) {
|
||||||
assert(value >= 0);
|
assert(value >= 0);
|
||||||
|
|
|
@ -201,8 +201,8 @@ extern "C" {
|
||||||
int rhorses(const struct region *r);
|
int rhorses(const struct region *r);
|
||||||
void rsethorses(const struct region *r, int value);
|
void rsethorses(const struct region *r, int value);
|
||||||
|
|
||||||
short rherbs(const struct region *r);
|
int rherbs(const struct region *r);
|
||||||
void rsetherbs(const struct region *r, short value);
|
void rsetherbs(const struct region *r, int value);
|
||||||
|
|
||||||
#define rbuildings(r) ((r)->buildings)
|
#define rbuildings(r) ((r)->buildings)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue