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_attribs(data, &global.attribs, NULL);
READ_INT(store, &turn); READ_INT(store, &turn);
log_debug(" - reading turn %d", 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, NULL); /* max_unique_id = ignore */
READ_INT(store, &nextborder); READ_INT(store, &nextborder);

View file

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