File diff r10065:d212881a03ae → r10066:d73a08a8dd72
src/gfxinit.cpp
Show inline comments
 
@@ -290,29 +290,29 @@ static void LoadSpriteTables()
 
	/* Initialize the unicode to sprite mapping table */
 
	InitializeUnicodeGlyphMap();
 

	
 
	/*
 
	 * Load the base NewGRF with OTTD required graphics as first NewGRF.
 
	 * However, we do not want it to show up in the list of used NewGRFs,
 
	 * so we have to manually add it, and then remove it later.
 
	 */
 
	GRFConfig *top = _grfconfig;
 
	GRFConfig *master = CallocT<GRFConfig>(1);
 
	master->filename = strdup(_used_graphics_set->files[GFT_EXTRA].filename);
 
	FillGRFDetails(master, false);
 
	master->windows_paletted = (_used_graphics_set->palette == PAL_WINDOWS);
 
	ClrBit(master->flags, GCF_INIT_ONLY);
 
	master->next = top;
 
	_grfconfig = master;
 

	
 
	_palette_remap_grf[i] = (_use_palette != _used_graphics_set->palette);
 
	LoadNewGRF(SPR_NEWGRFS_BASE, i);
 

	
 
	/* Free and remove the top element. */
 
	ClearGRFConfig(&master);
 
	_grfconfig = top;
 
}
 

	
 

	
 
void GfxLoadSprites()
 
{
 
	DEBUG(sprite, 2, "Loading sprite set %d", _settings_game.game_creation.landscape);