Rename LaserZap.TracksTarget to TrackTarget

And fix engineVersion of older Duration upgrade rule.
This commit is contained in:
reaperrr
2016-11-02 22:37:46 +01:00
parent 4d738d8fb9
commit 9abfce97fa
2 changed files with 11 additions and 4 deletions

View File

@@ -41,7 +41,7 @@ namespace OpenRA.Mods.Common.Projectiles
public readonly Color Color = Color.Red;
[Desc("Beam follows the target.")]
public readonly bool TracksTarget = true;
public readonly bool TrackTarget = true;
[Desc("Maximum offset at the maximum range.")]
public readonly WDist Inaccuracy = WDist.Zero;
@@ -120,7 +120,7 @@ namespace OpenRA.Mods.Common.Projectiles
public void Tick(World world)
{
// Beam tracks target
if (info.TracksTarget && args.GuidedTarget.IsValidFor(args.SourceActor))
if (info.TrackTarget && args.GuidedTarget.IsValidFor(args.SourceActor))
target = args.GuidedTarget.CenterPosition;
// Check for blocking actors