Project

General

Profile

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

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

View differences:

server/savegame/savegame2.c
wld.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. */
wld.map.server.seed
= secfile_lookup_int_default(loading->file, 0, "map.random_seed");
if (S_S_INITIAL == loading->server_state
&& MAPGEN_SCENARIO == wld.map.server.generator) {
/* Generator MAPGEN_SCENARIO is used;
(2-2/3)