Project

General

Profile

Bug #1166 » 0003-savegame2.c-Load-map.random_seed.patch

S2_6 - Marko Lindqvist, 11/29/2024 10:46 PM

View differences:

server/savegame2.c
game.map.server.have_huts
= secfile_lookup_bool_default(loading->file, TRUE, "map.have_huts");
/* Savegame may have stored random_seed for documentation purposes only,
* but we want to keep it for resaving. */
game.map.server.seed
= secfile_lookup_int_default(loading->file, 0, "map.random_seed");
if (S_S_INITIAL == loading->server_state
&& MAPGEN_SCENARIO == game.map.server.generator) {
/* Generator MAPGEN_SCENARIO is used;
(3-3/3)