(svn r10178) -Fix: Don't deactivate newgrf files when skipping the rest of the file during the initialisation stage.

This commit is contained in:
maedhros 2007-06-17 11:01:58 +00:00
parent 94bd08fc17
commit 5a9c7b5899
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
}
}