more tidy in DrawLineToTarget

This commit is contained in:
Chris Forbes
2011-10-21 17:00:22 +13:00
parent 3548dacad3
commit 88bfee872f

View File

@@ -24,21 +24,19 @@ namespace OpenRA.Traits
public class DrawLineToTarget : IPostRenderSelection
{
DrawLineToTargetInfo Info;
public DrawLineToTarget(DrawLineToTargetInfo info)
{
this.Info = info;
}
Target target;
int lifetime;
Color c;
int lifetime;
public DrawLineToTarget(DrawLineToTargetInfo info) { this.Info = info; }
public void SetTarget(Actor self, Target target, Color c, bool display)
{
this.target = target;
this.c = c;
if (display)
lifetime = Info.Ticks;
this.c = c;
}
public void RenderAfterWorld(WorldRenderer wr, Actor self)