equal
deleted
inserted
replaced
894 |
894 |
895 /* Load newgrf sprites */ |
895 /* Load newgrf sprites */ |
896 // in each loading stage, (try to) open each file specified in the config and load information from it. |
896 // in each loading stage, (try to) open each file specified in the config and load information from it. |
897 _custom_sprites_base = load_index; |
897 _custom_sprites_base = load_index; |
898 for (_loading_stage = 0; _loading_stage < 2; _loading_stage++) { |
898 for (_loading_stage = 0; _loading_stage < 2; _loading_stage++) { |
|
899 load_index = _custom_sprites_base; |
899 for (j = 0; j != lengthof(_newgrf_files) && _newgrf_files[j]; j++) { |
900 for (j = 0; j != lengthof(_newgrf_files) && _newgrf_files[j]; j++) { |
900 if ( !FiosCheckFileExists(_newgrf_files[j]) ) |
901 if ( !FiosCheckFileExists(_newgrf_files[j]) ) |
901 continue; |
902 continue; |
902 if (_loading_stage == 0) |
903 if (_loading_stage == 0) |
903 InitNewGRFFile(_newgrf_files[j], load_index); |
904 InitNewGRFFile(_newgrf_files[j], load_index); |