Split Target.Recalculate into methods with and without invalidation.
TargetExtensions is moved into its own file.
This commit is contained in:
@@ -43,7 +43,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
return NextActivity;
|
||||
}
|
||||
|
||||
target = target.Recalculate(self.Owner);
|
||||
target = target.RecalculateInvalidatingHiddenTargets(self.Owner);
|
||||
|
||||
if (!target.IsValidFor(self))
|
||||
return NextActivity;
|
||||
|
||||
Reference in New Issue
Block a user