Add sequence parameter to SpriteEffect.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user