1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-15 18:49:10 +00:00

(svn r1941) Report missing NewGRF file as a fatal error.

This commit is contained in:
pasky
2005-03-06 13:57:19 +00:00
parent 0ae7df4a95
commit 7ee6d0fa62

View File

@@ -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++);