Changeset - r15632:f0869f88fe5b
[Not reviewed]
master
0 1 0
yexo - 14 years ago 2010-08-02 16:04:24
yexo@openttd.org
(svn r20307) -Fix (r20305): the palette for baseset extra grfs was never set so it defaulted to dos
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/newgrf_config.cpp
Show inline comments
 
@@ -286,6 +286,7 @@ bool FillGRFDetails(GRFConfig *config, b
 

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

	
 
	/* Skip if the grfid is 0 (not read) or 0xFFFFFFFF (ttdp system grf) */
 
	if (config->ident.grfid == 0 || config->ident.grfid == 0xFFFFFFFF || config->IsOpenTTDBaseGRF()) return false;
 
@@ -298,8 +299,6 @@ bool FillGRFDetails(GRFConfig *config, b
 
		if (HasBit(config->flags, GCF_UNSAFE)) return false;
 
	}
 

	
 
	config->SetSuitablePalette();
 

	
 
	return CalcGRFMD5Sum(config);
 
}
 

	
0 comments (0 inline, 0 general)