diff options
author | maedhros <maedhros@openttd.org> | 2007-06-17 11:01:58 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-06-17 11:01:58 +0000 |
commit | 8765343e2e6dca9d2aa706a44aa0963350e58509 (patch) | |
tree | b72ed4623a1077147916efa8b13f08240c249fae /src | |
parent | 70b6716b985c15e6eee7304fd6434842d2bc456b (diff) | |
download | openttd-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')
-rw-r--r-- | src/newgrf.cpp | 4 |
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; + } } } |