diff options
author | frosch <frosch@openttd.org> | 2010-10-17 12:14:49 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-10-17 12:14:49 +0000 |
commit | 38c350fad589148ceb8f02a1df815a9555ef0f2e (patch) | |
tree | 6d0cd91cb277587c31d552ea0230e230eadc9368 /src/newgrf_gui.cpp | |
parent | 8a0685494392e83ca967f133a2d55f8a4baed5c1 (diff) | |
download | openttd-38c350fad589148ceb8f02a1df815a9555ef0f2e.tar.xz |
(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.
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 5169feb57..d97a852ea 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -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); |