summaryrefslogtreecommitdiff
path: root/src/newgrf_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-10-17 12:14:49 +0000
committerfrosch <frosch@openttd.org>2010-10-17 12:14:49 +0000
commit38c350fad589148ceb8f02a1df815a9555ef0f2e (patch)
tree6d0cd91cb277587c31d552ea0230e230eadc9368 /src/newgrf_gui.cpp
parent8a0685494392e83ca967f133a2d55f8a4baed5c1 (diff)
downloadopenttd-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.cpp4
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);