Add facings support to projectile trails and SmokeTrailWhenDamaged

This commit is contained in:
reaperrr
2016-03-01 23:15:11 +01:00
parent d063087de9
commit 717a5063d9
3 changed files with 11 additions and 3 deletions

View File

@@ -182,7 +182,7 @@ namespace OpenRA.Mods.Common.Effects
if (!string.IsNullOrEmpty(info.Trail) && --smokeTicks < 0)
{
var delayedPos = WPos.LerpQuadratic(args.Source, target, angle, ticks - info.TrailDelay, length);
world.AddFrameEndTask(w => w.Add(new Smoke(w, delayedPos, info.Trail, trailPalette, info.TrailSequences.Random(world.SharedRandom))));
world.AddFrameEndTask(w => w.Add(new Smoke(w, delayedPos, () => GetEffectiveFacing(), info.Trail, trailPalette, info.TrailSequences.Random(world.SharedRandom))));
smokeTicks = info.TrailInterval;
}