allow a per-game seed in eressea.ini

This commit is contained in:
Enno Rehling 2018-03-11 19:10:08 +01:00
parent 9ba255e269
commit ac8ae18588
2 changed files with 2 additions and 1 deletions

View File

@ -1418,7 +1418,7 @@ int read_game(gamedata *data)
read_attribs(data, &global.attribs, NULL);
READ_INT(store, &turn);
log_debug(" - reading turn %d", turn);
rng_init(turn);
rng_init(turn + config_get_int("game.seed", 0));
READ_INT(store, NULL); /* max_unique_id = ignore */
READ_INT(store, &nextborder);

View File

@ -86,6 +86,7 @@ static const char * valid_keys[] = {
"game.maxnmr",
"game.name",
"game.start",
"game.seed",
"game.locale",
"game.verbose",
"game.report",