facings for bullets, where appropriate.

This commit is contained in:
Bob
2010-02-11 14:22:12 +13:00
parent 4eda5dc9a9
commit 60448925e7
4 changed files with 13 additions and 19 deletions

View File

@@ -35,12 +35,12 @@ namespace OpenRa.Effects
if (Projectile.Image != null && Projectile.Image != "none")
{
anim = new Animation(Projectile.Image);
if (Projectile.Rotates)
Traits.Util.PlayFacing(anim, "idle", () => Facing);
anim = new Animation(Projectile.Image, () => Facing);
else
anim.PlayRepeating("idle");
anim = new Animation(Projectile.Image);
anim.PlayRepeating("idle");
}
}