Fixes wrong palette for crushed death anim.

This commit is contained in:
reaperrr
2014-09-14 01:03:37 +02:00
parent eab8e2e6e2
commit c451b07c05

View File

@@ -54,8 +54,8 @@ namespace OpenRA.Mods.RA
var wda = self.TraitOrDefault<WithDeathAnimation>();
if (wda != null)
{
var palette = wda.Info.DeathSequencePalette;
if (wda.Info.DeathPaletteIsPlayerPalette)
var palette = wda.Info.CrushedSequencePalette;
if (wda.Info.CrushedPaletteIsPlayerPalette)
palette += self.Owner.InternalName;
wda.SpawnDeathAnimation(self, wda.Info.CrushedSequence, palette);