Enable new resource visibilty by default.

This commit is contained in:
Enno Rehling 2020-12-06 19:22:59 +01:00
parent a3c8ff78da
commit 65246bc35e
2 changed files with 2 additions and 3 deletions

View File

@ -34,8 +34,7 @@
"rules.guard.castle_stop_prob": 0.05,
"rules.guard.region_type_stop_prob": 0.05,
"rules.economy.repopulate_maximum": 500,
"rules.lighthouse.unit_capacity": true,
"resource.visibility.rule": 0
"rules.lighthouse.unit_capacity": true
},
"disabled": [
"jsreport"

View File

@ -182,7 +182,7 @@ struct rawmaterial_type *rmt_get(const struct resource_type *rtype)
struct rawmaterial_type *rmt_create(struct resource_type *rtype)
{
if (!rtype->raw) {
int rule = config_get_int("resource.visibility.rule", 0);
int rule = config_get_int("resource.visibility.rule", 1);
rawmaterial_type *rmtype = rtype->raw = malloc(sizeof(rawmaterial_type));
if (!rmtype) abort();
rmtype->rtype = rtype;