summaryrefslogtreecommitdiff
path: root/src/newgrf_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-10-17 12:12:13 +0000
committerfrosch <frosch@openttd.org>2010-10-17 12:12:13 +0000
commit3972c790c2cba8c4c01ac6536e8675808f6e1c4d (patch)
tree09e55bb7f156c3cd331ee37683595583d88a2625 /src/newgrf_gui.cpp
parent918da8432ae709e002448c947550674e1f4ae278 (diff)
downloadopenttd-3972c790c2cba8c4c01ac6536e8675808f6e1c4d.tar.xz
(svn r20957) -Codechange: Add another parameter to FindGRFConfig() to define search restrictions.
Diffstat (limited to 'src/newgrf_gui.cpp')
-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 0e7934b68..5169feb57 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -1035,7 +1035,7 @@ struct NewGRFWindow : public QueryStringBaseWindow {
bool compatible = HasBit(c->flags, GCF_COMPATIBLE);
if (c->status != GCS_NOT_FOUND && !compatible) continue;
- const GRFConfig *f = FindGRFConfig(c->ident.grfid, compatible ? c->original_md5sum : c->ident.md5sum);
+ const GRFConfig *f = FindGRFConfig(c->ident.grfid, FGCM_EXACT, compatible ? c->original_md5sum : c->ident.md5sum);
if (f == NULL) continue;
*l = new GRFConfig(*f);
@@ -1211,7 +1211,7 @@ private:
if (_settings_client.gui.newgrf_show_old_versions) {
*this->avails.Append() = c;
} else {
- const GRFConfig *best = FindGRFConfig(c->ident.grfid, NULL);
+ const GRFConfig *best = FindGRFConfig(c->ident.grfid, FGCM_NEWEST);
/*
* If the best version is 0, then all NewGRF with this GRF ID
* have version 0, so for backward compatability reasons we