Split Target.Recalculate into methods with and without invalidation.

TargetExtensions is moved into its own file.
This commit is contained in:
Paul Chote
2019-01-16 11:07:07 +00:00
parent 2080c72ab9
commit d03c5b1c48
6 changed files with 94 additions and 48 deletions

View File

@@ -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;