author | peter1138 |
Thu, 14 Dec 2006 19:10:46 +0000 | |
changeset 5334 | c8bb331492a6 |
parent 5333 | dedf1f6de6d3 |
child 5335 | 47aeef679cb2 |
--- a/newgrf.c Thu Dec 14 15:14:29 2006 +0000 +++ b/newgrf.c Thu Dec 14 19:10:46 2006 +0000 @@ -2957,6 +2957,9 @@ 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; } } }