From b14c526c9295582323ab3d8dd10a40319d09fe20 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Thu, 14 Dec 2006 19:10:46 +0000 Subject: (svn r7496) -Codechange: [NewGRF] Skip processing a GRF if it deactivated itself. --- newgrf.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'newgrf.c') diff --git a/newgrf.c b/newgrf.c index cdebe68f1..7a294c655 100644 --- a/newgrf.c +++ b/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; } } } -- cgit v1.2.3-70-g09d2