(svn r15114) -Codechange: Add support for 8 byte action7/9 data, used as a mask for GRFID checks.

This commit is contained in:
peter1138
2009-01-16 19:53:52 +00:00
parent 102cc11ee9
commit f8d65b4865
3 changed files with 5 additions and 4 deletions

View File

@@ -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;