Merge pull request #10480 from pchote/fix-cloak-modifier

Fix Cloak modifying the palette of decoration renderables.
This commit is contained in:
Oliver Brakmann
2016-01-11 22:12:46 +01:00

View File

@@ -106,7 +106,7 @@ namespace OpenRA.Mods.Common.Traits
if (palette == null)
return r;
else
return r.Select(a => a.WithPalette(palette));
return r.Select(a => a.IsDecoration ? a : a.WithPalette(palette));
}
else
return SpriteRenderable.None;