Project

General

Profile

Bug #1170 » 0005-savegame-Fix-unused-entry-warning-about-game.save_kn.patch

S2_6 - Marko Lindqvist, 11/30/2024 04:16 AM

View differences:

server/savegame2.c
}
/* Nothing more needed for a scenario. */
(void) secfile_entry_lookup(loading->file, "game.save_known");
return;
}
......
if (secfile_lookup_bool_default(loading->file, TRUE,
"game.save_known")) {
int lines = player_slot_max_used_number()/32 + 1, j, p, l, i;
int lines = player_slot_max_used_number() / 32 + 1;
int j, p, l, i;
unsigned int *known = fc_calloc(lines * MAP_INDEX_SIZE, sizeof(*known));
for (l = 0; l < lines; l++) {
......
secfile_insert_bool(saving->file, FALSE, "game.save_known");
return;
} else {
int lines = player_slot_max_used_number()/32 + 1;
int lines = player_slot_max_used_number() / 32 + 1;
secfile_insert_bool(saving->file, game.server.save_options.save_known,
"game.save_known");
(2-2/2)