Don't unnecessarily discard 24bpp map previews

Those images now get converted on-the-fly by the game.
This commit is contained in:
Oliver Brakmann
2015-04-18 11:27:23 +02:00
parent fe8b3d91b1
commit b363c2c51e

View File

@@ -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