separate TargetFlash from DrawLineToTarget

This commit is contained in:
Matthias Mailänder
2013-11-01 11:20:52 +01:00
parent 40d71812f2
commit be1ab707c5
2 changed files with 8 additions and 5 deletions

View File

@@ -97,9 +97,6 @@ namespace OpenRA.Traits
if (self.Destroyed)
return;
if (target.Type == TargetType.Actor && display)
w.Add(new FlashTarget(target.Actor));
var line = self.TraitOrDefault<DrawLineToTarget>();
if (line != null)
line.SetTarget(self, target, color, display);