Bug #1161 ยป 0061-Savecompat-Do-not-add-game.world_peace_start-to-save.patch
| server/savegame/savecompat.c | ||
|---|---|---|
|
/* World Peace has never started in the old savegame. */
|
||
|
game.info.turn = secfile_lookup_int_default(loading->file, 0, "game.turn");
|
||
|
secfile_insert_int(loading->file, game.info.turn, "game.world_peace_start");
|
||
|
if (format_class != SAVEGAME_2) {
|
||
|
secfile_insert_int(loading->file, game.info.turn, "game.world_peace_start");
|
||
|
}
|
||
|
/* Last turn change time as a float, not integer multiplied by 100 */
|
||
|
{
|
||