Remove a pile of duplication from target lines.
Remove MoveFlash.
This commit is contained in:
@@ -56,14 +56,7 @@ namespace OpenRA.Mods.Cnc
|
||||
if (harvester.LastHarvestedCell != int2.Zero)
|
||||
{
|
||||
harv.QueueActivity( mobile.MoveTo(harvester.LastHarvestedCell, 5) );
|
||||
if (harv.Owner == self.World.LocalPlayer)
|
||||
self.World.AddFrameEndTask( w =>
|
||||
{
|
||||
if (harv.Destroyed) return;
|
||||
var line = harv.TraitOrDefault<DrawLineToTarget>();
|
||||
if (line != null)
|
||||
line.SetTargetSilently(harv, Target.FromCell(harvester.LastHarvestedCell), Color.Green);
|
||||
});
|
||||
harv.SetTargetLine(Target.FromCell(harvester.LastHarvestedCell), Color.Red, false);
|
||||
}
|
||||
}
|
||||
harv.QueueActivity( new Harvest() );
|
||||
|
||||
Reference in New Issue
Block a user