Skip to content

Commit

Permalink
fixup 'remove difficulcy_'
Browse files Browse the repository at this point in the history
otherwise we don't see the difficulcy in the loadgame menu and only see
"UNTLB" instead.
  • Loading branch information
gfgtdf committed Jun 1, 2014
1 parent b138912 commit c0b8168
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/gamestatus.cpp
Expand Up @@ -1069,13 +1069,14 @@ void extract_summary_from_config(config& cfg_save, config& cfg_summary)

if(cfg_save.has_child("carryover_sides_start")){
cfg_summary["scenario"] = cfg_save.child("carryover_sides_start")["next_scenario"];
cfg_summary["difficulty"] = cfg_save.child("carryover_sides_start")["difficulty"];
cfg_summary["random_mode"] = cfg_save.child("carryover_sides_start")["random_mode"];
} else {
cfg_summary["scenario"] = cfg_save["scenario"];
cfg_summary["difficulty"] = cfg_save["difficulty"];
cfg_summary["random_mode"] = cfg_save["random_mode"];
}

cfg_summary["difficulty"] = cfg_save["difficulty"];
cfg_summary["random_mode"] = cfg_save["random_mode"];


cfg_summary["campaign"] = cfg_save["campaign"];
cfg_summary["version"] = cfg_save["version"];
cfg_summary["corrupt"] = "";
Expand Down

0 comments on commit c0b8168

Please sign in to comment.