mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r20992) -Fix (r20958): Show either version and minimum compatible version or neither
This commit is contained in:
parent
7ee6f437ba
commit
9a0a76cc32
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user