File diff r25413:71c42f3ee7f2 → r25414:d3e1262b4805
src/newgrf_config.cpp
Show inline comments
 
@@ -372,22 +372,22 @@ bool FillGRFDetails(GRFConfig *config, b
 
	if (!FioCheckFileExists(config->filename, subdir)) {
 
		config->status = GCS_NOT_FOUND;
 
		return false;
 
	}
 

	
 
	/* Find and load the Action 8 information */
 
	LoadNewGRFFile(config, CONFIG_SLOT, GLS_FILESCAN, subdir);
 
	LoadNewGRFFile(config, GLS_FILESCAN, subdir, true);
 
	config->SetSuitablePalette();
 
	config->FinalizeParameterInfo();
 

	
 
	/* Skip if the grfid is 0 (not read) or if it is an internal GRF */
 
	if (config->ident.grfid == 0 || HasBit(config->flags, GCF_SYSTEM)) return false;
 

	
 
	if (is_static) {
 
		/* Perform a 'safety scan' for static GRFs */
 
		LoadNewGRFFile(config, CONFIG_SLOT, GLS_SAFETYSCAN, subdir);
 
		LoadNewGRFFile(config, GLS_SAFETYSCAN, subdir, true);
 

	
 
		/* GCF_UNSAFE is set if GLS_SAFETYSCAN finds unsafe actions */
 
		if (HasBit(config->flags, GCF_UNSAFE)) return false;
 
	}
 

	
 
	return CalcGRFMD5Sum(config, subdir);