mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-14 18:19:11 +00:00
(svn r7496) -Codechange: [NewGRF] Skip processing a GRF if it deactivated itself.
This commit is contained in:
3
newgrf.c
3
newgrf.c
@@ -2957,6 +2957,9 @@ static void GRFInhibit(byte *buf, int len)
|
||||
grfmsg(GMS_NOTICE, "GRFInhibit: Deactivating file ``%s''", file->filename);
|
||||
SETBIT(file->flags, GCF_DISABLED);
|
||||
CLRBIT(file->flags, GCF_ACTIVATED);
|
||||
|
||||
/* Skip processing if the GRF deactivated itself */
|
||||
if (file == _cur_grfconfig) _skip_sprites = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user