forked from github/server
Fix bool - int conversion the other way
This commit is contained in:
parent
65eab060a0
commit
f324408b6f
|
@ -1057,9 +1057,9 @@ int rule_give(void)
|
||||||
return config_get_int("rules.give.flags", GIVE_DEFAULT);
|
return config_get_int("rules.give.flags", GIVE_DEFAULT);
|
||||||
}
|
}
|
||||||
|
|
||||||
int markets_module(void)
|
bool markets_module(void)
|
||||||
{
|
{
|
||||||
return config_get_int("modules.markets", 0);
|
return (bool)config_get_int("modules.markets", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct param *configuration;
|
static struct param *configuration;
|
||||||
|
|
|
@ -135,7 +135,7 @@ struct param;
|
||||||
#define GUARD_ALL 0xFFFF
|
#define GUARD_ALL 0xFFFF
|
||||||
|
|
||||||
int maxworkingpeasants(const struct region *r);
|
int maxworkingpeasants(const struct region *r);
|
||||||
int markets_module(void);
|
bool markets_module(void);
|
||||||
int wage(const struct region *r, const struct faction *f,
|
int wage(const struct region *r, const struct faction *f,
|
||||||
const struct race *rc, int in_turn);
|
const struct race *rc, int in_turn);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue