Refactored ticks to delay per issue #9810
This commit is contained in:
committed by
colonelpopcorn
parent
689f05c3ca
commit
2d4c3f715f
@@ -17,7 +17,7 @@ namespace OpenRA.Traits
|
||||
{
|
||||
public class DrawLineToTargetInfo : ITraitInfo
|
||||
{
|
||||
public readonly int Ticks = 60;
|
||||
public readonly int Delay = 60;
|
||||
|
||||
public virtual object Create(ActorInitializer init) { return new DrawLineToTarget(init.Self, this); }
|
||||
}
|
||||
@@ -38,7 +38,7 @@ namespace OpenRA.Traits
|
||||
this.c = c;
|
||||
|
||||
if (display)
|
||||
lifetime = info.Ticks;
|
||||
lifetime = info.Delay;
|
||||
}
|
||||
|
||||
public void SetTargets(Actor self, List<Target> targets, Color c, bool display)
|
||||
@@ -47,7 +47,7 @@ namespace OpenRA.Traits
|
||||
this.c = c;
|
||||
|
||||
if (display)
|
||||
lifetime = info.Ticks;
|
||||
lifetime = info.Delay;
|
||||
}
|
||||
|
||||
public void Selected(Actor a)
|
||||
@@ -56,7 +56,7 @@ namespace OpenRA.Traits
|
||||
return;
|
||||
|
||||
// Reset the order line timeout.
|
||||
lifetime = info.Ticks;
|
||||
lifetime = info.Delay;
|
||||
}
|
||||
|
||||
public IEnumerable<IRenderable> RenderAfterWorld(WorldRenderer wr)
|
||||
|
||||
Reference in New Issue
Block a user