summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-06-17 11:01:58 +0000
committermaedhros <maedhros@openttd.org>2007-06-17 11:01:58 +0000
commit8765343e2e6dca9d2aa706a44aa0963350e58509 (patch)
treeb72ed4623a1077147916efa8b13f08240c249fae /src/newgrf.cpp
parent70b6716b985c15e6eee7304fd6434842d2bc456b (diff)
downloadopenttd-8765343e2e6dca9d2aa706a44aa0963350e58509.tar.xz
(svn r10178) -Fix: Don't deactivate newgrf files when skipping the rest of the file during the initialisation stage.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp4
1 files changed, 3 insertions, 1 deletions
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;
+ }
}
}