diff options
author | peter1138 <peter1138@openttd.org> | 2006-12-24 19:20:28 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-12-24 19:20:28 +0000 |
commit | e93c00aa462d4b64e4925a943a0c28bfde82c257 (patch) | |
tree | 562f9341a5acc5de0e0484dce4bfb472f3a2f51f | |
parent | 2d769ff46b4d7c7335530c73e86baeae4d13756d (diff) | |
download | openttd-e93c00aa462d4b64e4925a943a0c28bfde82c257.tar.xz |
(svn r7554) -Fix (r7496): In Action 0xE, don't deactivate the current GRF (to be ported to 0.5)
-rw-r--r-- | newgrf.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; } } } |