summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2010-10-18 17:47:42 +0000
committerplanetmaker <planetmaker@openttd.org>2010-10-18 17:47:42 +0000
commit9a0a76cc32ab47bdf229b0f6957e8edd8d3eccf1 (patch)
tree389b03ff47ab0982b107b9bfcf3ca8b40e415473 /src
parent7ee6f437bafcefeec4fb65d13993f9224f3f6ac5 (diff)
downloadopenttd-9a0a76cc32ab47bdf229b0f6957e8edd8d3eccf1.tar.xz
(svn r20992) -Fix (r20958): Show either version and minimum compatible version or neither
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index d97a852ea..7191bbcb4 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -81,11 +81,11 @@ static void ShowNewGRFInfo(const GRFConfig *c, uint x, uint y, uint right, uint
SetDParamStr(0, buff);
y = DrawStringMultiLine(x, right, y, bottom, STR_NEWGRF_SETTINGS_GRF_ID);
- if (_settings_client.gui.newgrf_developer_tools && c->version != 0) {
+ if ((_settings_client.gui.newgrf_developer_tools || _settings_client.gui.newgrf_show_old_versions) && c->version != 0) {
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) {
+ if ((_settings_client.gui.newgrf_developer_tools || _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);
}