equal
deleted
inserted
replaced
4939 _cur_spriteid = load_index; |
4939 _cur_spriteid = load_index; |
4940 for (GRFConfig *c = _grfconfig; c != NULL; c = c->next) { |
4940 for (GRFConfig *c = _grfconfig; c != NULL; c = c->next) { |
4941 if (c->status == GCS_DISABLED || c->status == GCS_NOT_FOUND) continue; |
4941 if (c->status == GCS_DISABLED || c->status == GCS_NOT_FOUND) continue; |
4942 |
4942 |
4943 /* @todo usererror() */ |
4943 /* @todo usererror() */ |
4944 if (!FileExists(c->full_path)) error("NewGRF file is missing '%s'", c->filename); |
4944 if (!FioCheckFileExists(c->full_path)) error("NewGRF file is missing '%s'", c->filename); |
4945 |
4945 |
4946 if (stage == GLS_LABELSCAN) InitNewGRFFile(c, _cur_spriteid); |
4946 if (stage == GLS_LABELSCAN) InitNewGRFFile(c, _cur_spriteid); |
4947 LoadNewGRFFile(c, slot++, stage); |
4947 LoadNewGRFFile(c, slot++, stage); |
4948 if (stage == GLS_RESERVE) { |
4948 if (stage == GLS_RESERVE) { |
4949 if (c->status == GCS_ACTIVATED) c->status = GCS_INITIALISED; |
4949 if (c->status == GCS_ACTIVATED) c->status = GCS_INITIALISED; |