Support custom map previews.

Add map.png to the map archive.
This commit is contained in:
Paul Chote
2014-03-15 19:12:00 +13:00
parent 2106393122
commit 8fc78603bc
3 changed files with 7 additions and 1 deletions

View File

@@ -107,7 +107,7 @@ namespace OpenRA
// the next render cycle.
// (d) Any partially written bytes from the next minimap is in an
// unallocated area, and will be committed in the next cycle.
var bitmap = Minimap.RenderMapPreview(p.Map, true);
var bitmap = p.CustomPreview ?? Minimap.RenderMapPreview(p.Map, true);
p.Minimap = sheetBuilder.Add(bitmap);
lock (syncRoot)