1
0
Fork 0

(svn r7496) -Codechange: [NewGRF] Skip processing a GRF if it deactivated itself.

release/0.5
peter1138 2006-12-14 19:10:46 +00:00
parent 5772da18b2
commit b14c526c92
1 changed files with 3 additions and 0 deletions

View File

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