From 8765343e2e6dca9d2aa706a44aa0963350e58509 Mon Sep 17 00:00:00 2001 From: maedhros Date: Sun, 17 Jun 2007 11:01:58 +0000 Subject: (svn r10178) -Fix: Don't deactivate newgrf files when skipping the rest of the file during the initialisation stage. --- src/newgrf.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/newgrf.cpp') diff --git a/src/newgrf.cpp b/src/newgrf.cpp index dd29076d9..83031e5fa 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -3279,7 +3279,9 @@ static void SkipIf(byte *buf, int len) _skip_sprites = -1; /* If an action 8 hasn't been encountered yet, disable the grf. */ - if (_cur_grfconfig->status != GCS_ACTIVATED) _cur_grfconfig->status = GCS_DISABLED; + if (_cur_grfconfig->status != GCS_ACTIVATED && _cur_grfconfig->status != GCS_INITIALISED) { + _cur_grfconfig->status = GCS_DISABLED; + } } } -- cgit v1.2.3-54-g00ecf