(svn r10178) -Fix: Don't deactivate newgrf files when skipping the rest of the file during the initialisation stage.
authormaedhros
Sun, 17 Jun 2007 11:01:58 +0000
changeset 6925 f73d75a1f7da
parent 6924 f2ac2b1f5d06
child 6926 e64dd463c666
(svn r10178) -Fix: Don't deactivate newgrf files when skipping the rest of the file during the initialisation stage.
src/newgrf.cpp
--- a/src/newgrf.cpp	Sun Jun 17 10:47:30 2007 +0000
+++ b/src/newgrf.cpp	Sun Jun 17 11:01:58 2007 +0000
@@ -3279,7 +3279,9 @@
 		_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;
+		}
 	}
 }