Add sequence parameter to SpriteEffect.

This commit is contained in:
Paul Chote
2016-01-02 12:42:57 +00:00
parent 8d7ed98636
commit 6af377030c
4 changed files with 5 additions and 5 deletions

View File

@@ -74,7 +74,7 @@ namespace OpenRA.Mods.Common.Traits
self.World.Map.CenterOfCell(cachedCell);
if (info.TerrainTypes.Contains(type) && !string.IsNullOrEmpty(info.Image))
self.World.AddFrameEndTask(w => w.Add(new SpriteEffect(pos, self.World, info.Image, info.Palette)));
self.World.AddFrameEndTask(w => w.Add(new SpriteEffect(pos, self.World, info.Image, "idle", info.Palette)));
cachedPosition = self.CenterPosition;
ticks = 0;

View File

@@ -52,7 +52,7 @@ namespace OpenRA.Mods.Common.Traits
Game.Sound.Play(info.DeploySound, location);
if (!string.IsNullOrEmpty(info.EffectSequence) && !string.IsNullOrEmpty(info.EffectPalette))
w.Add(new SpriteEffect(location, w, info.EffectSequence, info.EffectPalette));
w.Add(new SpriteEffect(location, w, info.EffectSequence, "idle", info.EffectPalette));
var actor = w.CreateActor(info.Actor, new TypeDictionary
{