Start-of-scenario saves are recognized again when compressed.

This commit is contained in:
Ignacio R. Morelle 2008-12-12 04:47:40 +00:00
parent 413ec136fb
commit 99861fae07
4 changed files with 8 additions and 1 deletions

View file

@ -20,3 +20,7 @@ work again.
***
Compressed start of scenario saves are recognized
again by the load-game dialog.
***

View file

@ -58,6 +58,8 @@ Version 1.5.6+svn:
respectively, in [endlevel] or [campaign] tags. end_text_duration
is measured in milliseconds. (feature #10449)
* Miscellaneous and bug fixes:
* Compressed start-of-scenario saves are properly recognized by the
load-game dialog again.
* Fixed replays for single-player campaigns (bug #12005).
* Fixed the restart-replay button causing an assertion failure.
* New memory allocator introduced to the engine. It should

View file

@ -35,6 +35,7 @@ Version 1.5.6+svn:
* Increased the cost of the Goblin Spearman from 8 to 9.
* Miscellaneous and bugfixes
* Compressed start-of-scenario saved games are recognized again.
* Fixed single-player campaign scenario replays.
* Fixed random memory corruption/assertion failure/massive memory leak
due to story screens.

View file

@ -1057,7 +1057,7 @@ void extract_summary_from_config(config& cfg_save, config& cfg_summary)
const config* cfg_snapshot = cfg_save.child("snapshot");
const config* cfg_replay_start = cfg_save.child("replay_start");
const bool has_replay = cfg_save.child("replay") != NULL;
const bool has_replay = (cfg_save.child("replay") != NULL && !cfg_save.child("replay")->empty());
const bool has_snapshot = (cfg_snapshot != NULL) && (cfg_snapshot->child("side") != NULL);
cfg_summary["replay"] = has_replay ? "yes" : "no";