diff options
author | peter1138 <peter1138@openttd.org> | 2009-01-16 19:53:52 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2009-01-16 19:53:52 +0000 |
commit | 8ab3e4b7b673a5c23db3ac477c88abf099c0ac36 (patch) | |
tree | 1fc9ad407c2e3a9539d19446dddae443be0eeb78 /src/newgrf_config.cpp | |
parent | 3fb43b6bcb19b51ccb17e2c89eae4b4f63bff1c3 (diff) | |
download | openttd-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.cpp | 4 |
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; |