summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpasky <pasky@openttd.org>2005-03-06 13:57:19 +0000
committerpasky <pasky@openttd.org>2005-03-06 13:57:19 +0000
commit7ee6d0fa6295d3b31e13227752b378a2b690c417 (patch)
tree9bf0c7ac66f31015764192b9ded457e86d1cbcd4
parent0ae7df4a95813e257b8ddaa7f2b6e884d10939be (diff)
downloadopenttd-7ee6d0fa6295d3b31e13227752b378a2b690c417.tar.xz
(svn r1941) Report missing NewGRF file as a fatal error.
-rw-r--r--spritecache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/spritecache.c b/spritecache.c
index ea0d95294..af63ef8c3 100644
--- a/spritecache.c
+++ b/spritecache.c
@@ -912,7 +912,8 @@ static void LoadSpriteTables(void)
load_index = _custom_sprites_base;
for (j = 0; j != lengthof(_newgrf_files) && _newgrf_files[j]; j++) {
if (!FiosCheckFileExists(_newgrf_files[j]))
- continue;
+ // TODO: usrerror()
+ error("NewGRF file missing: %s", _newgrf_files[j]);
if (_loading_stage == 0)
InitNewGRFFile(_newgrf_files[j], load_index);
load_index += LoadNewGrfFile(_newgrf_files[j], load_index, i++);