(svn r20960) -Add: Allow setting 'minimal compatible version' via Action14. (planetmaker)

Note: Setting 'VRSN' also sets 'MINV' resulting in the Grf being only compatible to the same version. Set 'MINV' after 'VRSN' if your Grf is compatible to older versions.
This commit is contained in:
frosch
2010-10-17 12:14:49 +00:00
parent 3dbc1abf14
commit f7b6d8e8bb
4 changed files with 28 additions and 1 deletions

View File

@@ -85,6 +85,10 @@ static void ShowNewGRFInfo(const GRFConfig *c, uint x, uint y, uint right, uint
SetDParam(0, c->version);
y = DrawStringMultiLine(x, right, y, bottom, STR_NEWGRF_SETTINGS_VERSION);
}
if (_settings_client.gui.newgrf_show_old_versions && c->min_loadable_version != 0) {
SetDParam(0, c->min_loadable_version);
y = DrawStringMultiLine(x, right, y, bottom, STR_NEWGRF_SETTINGS_MIN_VERSION);
}
/* Prepare and draw MD5 sum */
md5sumToString(buff, lastof(buff), c->ident.md5sum);