From 5a9c7b58998dea385365f90c8fccd26263a2355e Mon Sep 17 00:00:00 2001 From: maedhros Date: Sun, 17 Jun 2007 11:01:58 +0000 Subject: [PATCH] (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(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index dd29076d94..83031e5fa5 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; + } } }