Merge pull request #8125 from pchote/player-palettes

Reorganize palette loading.
This commit is contained in:
Oliver Brakmann
2015-05-10 17:35:34 +02:00
25 changed files with 450 additions and 362 deletions

View File

@@ -172,6 +172,12 @@ namespace OpenRA.Mods.Common.Traits
fogPalette = wr.Palette(info.FogPalette);
shroudPalette = wr.Palette(info.ShroudPalette);
wr.PaletteInvalidated += () =>
{
mapBorderShroudIsCached = false;
MarkCellsDirty(CellRegion.Expand(map.Cells, 1));
};
}
Edges GetEdges(MPos uv, Func<MPos, bool> isVisible)