Project

General

Profile

Bug #1164 ยป 0063-Savecompat-Do-not-add-map.altitude-to-savegame2-save.patch

Marko Lindqvist, 11/28/2024 10:43 PM

View differences:

server/savegame/savecompat.c
log_debug("Upgrading data from savegame to version 3.3.0");
secfile_insert_bool(loading->file, FALSE, "map.altitude");
/* World Peace has never started in the old savegame. */
game.info.turn = secfile_lookup_int_default(loading->file, 0, "game.turn");
if (format_class != SAVEGAME_2) {
secfile_insert_int(loading->file, game.info.turn, "game.world_peace_start");
secfile_insert_bool(loading->file, FALSE, "map.altitude");
}
/* Last turn change time as a float, not integer multiplied by 100 */
server/savegame/savegame2.c
wld.map.server.have_huts
= secfile_lookup_bool_default(loading->file, TRUE, "map.have_huts");
wld.map.altitude_info = FALSE;
if (S_S_INITIAL == loading->server_state
&& MAPGEN_SCENARIO == wld.map.server.generator) {
/* Generator MAPGEN_SCENARIO is used;
    (1-1/1)