Bug #1167 » 0070-savegame-Load-game.random_seed.patch
server/savegame/savegame2.c | ||
---|---|---|
game.info.coolinglevel
|
||
= secfile_lookup_int_default(loading->file, 0, "game.coolinglevel");
|
||
/* Savegame may have stored random_seed for documentation purposes only,
|
||
* but we want to keep it for resaving. */
|
||
game.server.seed = secfile_lookup_int_default(loading->file, 0, "game.random_seed");
|
||
/* Global advances. */
|
||
str = secfile_lookup_str_default(loading->file, NULL,
|
||
"game.global_advances");
|
server/savegame/savegame3.c | ||
---|---|---|
game.info.coolinglevel
|
||
= secfile_lookup_int_default(loading->file, 0, "game.coolinglevel");
|
||
/* Savegame may store random_seed for documentation purposes only,
|
||
* we don't need it. Just silence "unused entry" warning. */
|
||
(void) secfile_entry_lookup(loading->file, "game.random_seed");
|
||
/* Savegame may have stored random_seed for documentation purposes only,
|
||
* but we want to keep it for resaving. */
|
||
game.server.seed = secfile_lookup_int_default(loading->file, 0, "game.random_seed");
|
||
/* Global advances. */
|
||
str = secfile_lookup_str_default(loading->file, NULL,
|