Display version of savegame in load dialog. (#10670)

(this information will appear for savegames made after this commit)
This commit is contained in:
Cédric Duval 2004-10-22 12:34:42 +00:00
parent 6b573d41d7
commit 1f136e417f
2 changed files with 4 additions and 0 deletions

View file

@ -385,6 +385,9 @@ void save_preview_pane::draw()
}
str << "\n" << _("Difficulty") << ": " << string_table[summary["difficulty"]];
if(!summary["version"].empty()) {
str << "\n" << _("Version") << ": " << summary["version"];
}
}
font::draw_text(&disp(),area,font::SIZE_SMALL,font::NORMAL_COLOUR,str.str(),area.x,ypos,NULL,true);

View file

@ -521,6 +521,7 @@ void extract_summary_data_from_save(const game_state& state, config& out)
out["campaign_type"] = state.campaign_type;
out["scenario"] = state.scenario;
out["difficulty"] = state.difficulty;
out["version"] = state.version;
out["corrupt"] = "";
if(has_snapshot) {