forked from github/server
Enable new resource visibilty by default.
This commit is contained in:
parent
a3c8ff78da
commit
65246bc35e
2 changed files with 2 additions and 3 deletions
|
@ -34,8 +34,7 @@
|
||||||
"rules.guard.castle_stop_prob": 0.05,
|
"rules.guard.castle_stop_prob": 0.05,
|
||||||
"rules.guard.region_type_stop_prob": 0.05,
|
"rules.guard.region_type_stop_prob": 0.05,
|
||||||
"rules.economy.repopulate_maximum": 500,
|
"rules.economy.repopulate_maximum": 500,
|
||||||
"rules.lighthouse.unit_capacity": true,
|
"rules.lighthouse.unit_capacity": true
|
||||||
"resource.visibility.rule": 0
|
|
||||||
},
|
},
|
||||||
"disabled": [
|
"disabled": [
|
||||||
"jsreport"
|
"jsreport"
|
||||||
|
|
|
@ -182,7 +182,7 @@ struct rawmaterial_type *rmt_get(const struct resource_type *rtype)
|
||||||
struct rawmaterial_type *rmt_create(struct resource_type *rtype)
|
struct rawmaterial_type *rmt_create(struct resource_type *rtype)
|
||||||
{
|
{
|
||||||
if (!rtype->raw) {
|
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));
|
rawmaterial_type *rmtype = rtype->raw = malloc(sizeof(rawmaterial_type));
|
||||||
if (!rmtype) abort();
|
if (!rmtype) abort();
|
||||||
rmtype->rtype = rtype;
|
rmtype->rtype = rtype;
|
||||||
|
|
Loading…
Reference in a new issue