summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-01-08 19:18:32 +0000
committerfrosch <frosch@openttd.org>2010-01-08 19:18:32 +0000
commita16edfebd9b71aef938b4b32ac8276458aa33029 (patch)
tree3b3155747e0f26400572bc099ae4633fc0ef95e0
parentda3decba522de1149f2fe90fe592957f42bb89e9 (diff)
downloadopenttd-a16edfebd9b71aef938b4b32ac8276458aa33029.tar.xz
(svn r18760) -Fix (rlots)[FS#3500]: Action 9 did not properly detect whether an Action 8 was encountered already.
-rw-r--r--src/newgrf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 04df38e33..f7920b5c7 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -4168,7 +4168,7 @@ static void SkipIf(byte *buf, size_t len)
_skip_sprites = -1;
/* If an action 8 hasn't been encountered yet, disable the grf. */
- if (_cur_grfconfig->status != GCS_ACTIVATED) {
+ if (_cur_grfconfig->status != (_cur_stage < GLS_RESERVE ? GCS_INITIALISED : GCS_ACTIVATED)) {
_cur_grfconfig->status = GCS_DISABLED;
ClearTemporaryNewGRFData(_cur_grffile);
}