Show savegame version/info in load window if sl debug enabled

This commit is contained in:
Jonathan G Rennison
2023-11-18 13:24:25 +00:00
parent bea18ffc18
commit 9c29950956
3 changed files with 67 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ void LoadCheckData::Clear()
this->debug_config_data.clear();
this->sl_is_ext_version = false;
this->version_name.clear();
}
/** Load game/scenario with optional content download */
@@ -490,6 +491,11 @@ public:
tr.bottom -= FONT_HEIGHT_NORMAL - 1;
if (tr.top > tr.bottom) return;
if (!_load_check_data.version_name.empty()) {
SetDParamStr(0, _load_check_data.version_name);
tr.top = DrawStringMultiLine(tr, STR_JUST_RAW_STRING, TC_GREEN);
}
if (!_load_check_data.checkable) {
/* Old savegame, no information available */
DrawString(tr, STR_SAVELOAD_DETAIL_NOT_AVAILABLE);