Show savegame version/info in load window if sl debug enabled
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user