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>(); var wda = self.TraitOrDefault<WithDeathAnimation>();
if (wda != null) if (wda != null)
{ {
var palette = wda.Info.DeathSequencePalette; var palette = wda.Info.CrushedSequencePalette;
if (wda.Info.DeathPaletteIsPlayerPalette) if (wda.Info.CrushedPaletteIsPlayerPalette)
palette += self.Owner.InternalName; palette += self.Owner.InternalName;
wda.SpawnDeathAnimation(self, wda.Info.CrushedSequence, palette); wda.SpawnDeathAnimation(self, wda.Info.CrushedSequence, palette);