Remove Explosion effect and use SpriteEffect instead

This commit is contained in:
reaperrr
2016-05-23 23:06:33 +02:00
parent 6a988fd676
commit 51b88bfbaf
5 changed files with 3 additions and 48 deletions

View File

@@ -111,7 +111,7 @@ namespace OpenRA.Mods.Common.Warheads
var explosion = Explosions.RandomOrDefault(Game.CosmeticRandom);
if (Image != null && explosion != null)
world.AddFrameEndTask(w => w.Add(new Explosion(w, pos, Image, explosion, palette)));
world.AddFrameEndTask(w => w.Add(new SpriteEffect(pos, w, Image, explosion, palette)));
var impactSound = ImpactSounds.RandomOrDefault(Game.CosmeticRandom);
if (impactSound != null)