Display version of savegame in load dialog. (#10670)
(this information will appear for savegames made after this commit)
This commit is contained in:
parent
6b573d41d7
commit
1f136e417f
2 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue