Add facing support to Gravity Bomb.
This commit is contained in:
committed by
Oliver Brakmann
parent
85a97998aa
commit
a2ac95d140
@@ -65,7 +65,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
||||
|
||||
if (!string.IsNullOrEmpty(info.Image))
|
||||
{
|
||||
anim = new Animation(args.SourceActor.World, info.Image);
|
||||
anim = new Animation(args.SourceActor.World, info.Image, () => args.Facing);
|
||||
|
||||
if (!string.IsNullOrEmpty(info.OpenSequence))
|
||||
anim.PlayThen(info.OpenSequence, () => anim.PlayRepeating(info.Sequences.Random(args.SourceActor.World.SharedRandom)));
|
||||
|
||||
Reference in New Issue
Block a user