format and clean up DrawLineToTarget

This commit is contained in:
Chris Forbes
2010-08-01 11:32:09 +12:00
parent e8604d172c
commit 13244d17f1

View File

@@ -47,9 +47,7 @@ namespace OpenRA.Traits
public void RenderAfterWorld(Actor self)
{
var activity = self.GetCurrentActivity();
if (activity == null || activity is Idle)
return;
if (self.IsIdle) return;
var force = Game.GetModifierKeys().HasModifier(Modifiers.Alt);
if ((lifetime <= 0 || --lifetime <= 0) && !force)