Fix bool - int conversion the other way

This commit is contained in:
CTD 2016-07-15 10:48:37 +02:00
parent 65eab060a0
commit f324408b6f
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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);