From b363c2c51eb90232ebec2b8c8b913925f1efbf6b Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Sat, 18 Apr 2015 11:27:23 +0200 Subject: [PATCH] Don't unnecessarily discard 24bpp map previews Those images now get converted on-the-fly by the game. --- OpenRA.Game/Map/MapCache.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/OpenRA.Game/Map/MapCache.cs b/OpenRA.Game/Map/MapCache.cs index 44bc4a9d9c..2bbf636958 100644 --- a/OpenRA.Game/Map/MapCache.cs +++ b/OpenRA.Game/Map/MapCache.cs @@ -175,11 +175,6 @@ namespace OpenRA createdPreview = true; bitmap = Minimap.RenderMapPreview(modData.DefaultRules.TileSets[p.Map.Tileset], p.Map, modData.DefaultRules, true); } - else if (bitmap.PixelFormat != PixelFormat.Format32bppArgb) - { - Log.Write("debug", "Discarding invalid map preview for {0}", p.Uid); - continue; - } // Note: this is not generally thread-safe, but it works here because: // (a) This worker is the only thread writing to this sheet