summaryrefslogtreecommitdiff
path: root/src/newgrf_config.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-01-16 19:53:52 +0000
committerpeter1138 <peter1138@openttd.org>2009-01-16 19:53:52 +0000
commit8ab3e4b7b673a5c23db3ac477c88abf099c0ac36 (patch)
tree1fc9ad407c2e3a9539d19446dddae443be0eeb78 /src/newgrf_config.cpp
parent3fb43b6bcb19b51ccb17e2c89eae4b4f63bff1c3 (diff)
downloadopenttd-8ab3e4b7b673a5c23db3ac477c88abf099c0ac36.tar.xz
(svn r15114) -Codechange: Add support for 8 byte action7/9 data, used as a mask for GRFID checks.
Diffstat (limited to 'src/newgrf_config.cpp')
-rw-r--r--src/newgrf_config.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp
index b579e5e98..6902fcdb5 100644
--- a/src/newgrf_config.cpp
+++ b/src/newgrf_config.cpp
@@ -456,12 +456,12 @@ char *FindUnknownGRFName(uint32 grfid, uint8 *md5sum, bool create)
/* Retrieve a NewGRF from the current config by its grfid */
-GRFConfig *GetGRFConfig(uint32 grfid)
+GRFConfig *GetGRFConfig(uint32 grfid, uint32 mask)
{
GRFConfig *c;
for (c = _grfconfig; c != NULL; c = c->next) {
- if (c->grfid == grfid) return c;
+ if ((c->grfid & mask) == (grfid & mask)) return c;
}
return NULL;