removed ProjectileInfo.Rotates, since it's redundant now that we have facings= in sequences

This commit is contained in:
Chris Forbes
2010-03-17 18:39:05 +13:00
parent 64ac7464a5
commit c2d019210d
5 changed files with 2 additions and 26 deletions

View File

@@ -66,11 +66,7 @@ namespace OpenRA.Effects
if (Projectile.Image != null && Projectile.Image != "none")
{
if (Projectile.Rotates)
anim = new Animation(Projectile.Image, () => Traits.Util.GetFacing((dest - src).ToFloat2(), 0));
else
anim = new Animation(Projectile.Image);
anim = new Animation(Projectile.Image, () => Traits.Util.GetFacing((dest - src).ToFloat2(), 0));
anim.PlayRepeating("idle");
}
}

View File

@@ -53,11 +53,7 @@ namespace OpenRA.Effects
if (Projectile.Image != null && Projectile.Image != "none")
{
if (Projectile.Rotates)
anim = new Animation(Projectile.Image, () => Facing);
else
anim = new Animation(Projectile.Image);
anim = new Animation(Projectile.Image, () => Facing);
anim.PlayRepeating("idle");
}
}