Exposed PathSearch.owner and removed Player argument from PathFinder functions.

This commit is contained in:
Matthias Mailänder
2013-03-06 17:26:07 +01:00
parent 493eb10b96
commit 2abde381a7
4 changed files with 35 additions and 9 deletions

View File

@@ -49,8 +49,9 @@ namespace OpenRA.Mods.RA.Move
{
this.getPath = (self,mobile) =>
self.World.WorldActor.Trait<PathFinder>().FindPath(
PathSearch.FromPoint( self.World, mobile.Info, self, mobile.toCell, destination, false )
.WithIgnoredBuilding( ignoreBuilding ));
PathSearch.FromPoint(self.World, mobile.Info, self, mobile.toCell, destination, false)
.WithIgnoredBuilding(ignoreBuilding)
);
this.destination = destination;
this.nearEnough = 0;