summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index c226d295e..1426208e7 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -6212,8 +6212,11 @@ void LoadNewGRF(uint load_index, uint file_index)
if (c->status == GCS_DISABLED || c->status == GCS_NOT_FOUND) continue;
if (stage > GLS_INIT && HasBit(c->flags, GCF_INIT_ONLY)) continue;
- /* @todo usererror() */
- if (!FioCheckFileExists(c->filename)) usererror("NewGRF file is missing '%s'", c->filename);
+ if (!FioCheckFileExists(c->filename)) {
+ DEBUG(grf, 0, "NewGRF file is missing '%s'; disabling", c->filename);
+ c->status = GCS_NOT_FOUND;
+ continue;
+ }
if (stage == GLS_LABELSCAN) InitNewGRFFile(c, _cur_spriteid);
LoadNewGRFFile(c, slot++, stage);