forked from github/server
rename some configuration options.
add them to the valid keys for eressea.ini, too.
This commit is contained in:
parent
868f4e6cef
commit
733c754e0f
|
@ -21,9 +21,7 @@
|
||||||
"GiveRestriction": 3,
|
"GiveRestriction": 3,
|
||||||
"hunger.long": true,
|
"hunger.long": true,
|
||||||
"init_spells": 0,
|
"init_spells": 0,
|
||||||
"world.era": 2,
|
"game.era": 2,
|
||||||
"seed.population.min": 8,
|
|
||||||
"seed.population.max": 8,
|
|
||||||
"rules.reserve.twophase": true,
|
"rules.reserve.twophase": true,
|
||||||
"rules.give.max_men": -1,
|
"rules.give.max_men": -1,
|
||||||
"rules.check_overload": false,
|
"rules.check_overload": false,
|
||||||
|
|
|
@ -51,9 +51,7 @@
|
||||||
"recruit.allow_merge": true,
|
"recruit.allow_merge": true,
|
||||||
"study.expensivemigrants": true,
|
"study.expensivemigrants": true,
|
||||||
"study.speedup": 2,
|
"study.speedup": 2,
|
||||||
"world.era": 3,
|
"game.era": 3,
|
||||||
"seed.population.min": 8,
|
|
||||||
"seed.population.max": 8,
|
|
||||||
"rules.reserve.twophase": true,
|
"rules.reserve.twophase": true,
|
||||||
"rules.owners.force_leave": false,
|
"rules.owners.force_leave": false,
|
||||||
"rules.wage.function": 2,
|
"rules.wage.function": 2,
|
||||||
|
|
|
@ -1501,7 +1501,7 @@ report_computer(const char *filename, report_context * ctx, const char *bom)
|
||||||
static int rc_cache;
|
static int rc_cache;
|
||||||
|
|
||||||
if (era < 0) {
|
if (era < 0) {
|
||||||
era = config_get_int("world.era", 1);
|
era = config_get_int("game.era", 1);
|
||||||
}
|
}
|
||||||
if (F == NULL) {
|
if (F == NULL) {
|
||||||
perror(filename);
|
perror(filename);
|
||||||
|
|
|
@ -902,8 +902,8 @@ static void handlekey(state * st, int c)
|
||||||
new_players = read_newfactions(sbuffer);
|
new_players = read_newfactions(sbuffer);
|
||||||
}
|
}
|
||||||
cnormalize(&st->cursor, &nx, &ny);
|
cnormalize(&st->cursor, &nx, &ny);
|
||||||
minpop = config_get_int("seed.population.min", 8);
|
minpop = config_get_int("editor.population.min", 8);
|
||||||
maxpop = config_get_int("seed.population.max", minpop);
|
maxpop = config_get_int("editor.population.max", minpop);
|
||||||
if (maxpop > minpop) {
|
if (maxpop > minpop) {
|
||||||
n = rng_int() % (maxpop - minpop) + minpop;
|
n = rng_int() % (maxpop - minpop) + minpop;
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,9 +82,11 @@ static const char * valid_keys[] = {
|
||||||
"game.memcheck",
|
"game.memcheck",
|
||||||
"game.email",
|
"game.email",
|
||||||
"game.mailcmd",
|
"game.mailcmd",
|
||||||
|
"game.era",
|
||||||
"game.sender",
|
"game.sender",
|
||||||
"editor.color",
|
"editor.color",
|
||||||
"editor.codepage",
|
"editor.codepage",
|
||||||
|
"editor.population.",
|
||||||
"lua.",
|
"lua.",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue