spritecache.c
changeset 1250 49d00fa42b76
parent 1198 2ad7ac9e1d59
child 1299 39c06aba09aa
equal deleted inserted replaced
1249:3f6390064c63 1250:49d00fa42b76
   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);