From 5cf3b8a1a92d604d2d3652d6b91bb8eeaf9031ac Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 24 Dec 2006 19:20:28 +0000 Subject: (svn r7554) -Fix (r7496): In Action 0xE, don't deactivate the current GRF (to be ported to 0.5) --- newgrf.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'newgrf.c') diff --git a/newgrf.c b/newgrf.c index 73b900960..a664778f1 100644 --- a/newgrf.c +++ b/newgrf.c @@ -2966,13 +2966,10 @@ static void GRFInhibit(byte *buf, int len) GRFConfig *file = GetGRFConfig(grfid); /* Unset activation flag */ - if (file != NULL) { + if (file != NULL && file != _cur_grfconfig) { 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