make it actually sortof work

This commit is contained in:
Chris Forbes
2010-05-16 12:53:20 +12:00
parent c20a1cc70a
commit 8e46f99ab9
4 changed files with 12 additions and 12 deletions

View File

@@ -54,7 +54,7 @@ namespace OpenRA.Traits.Activities
{
this.getPath = ( self, mobile ) => self.World.PathFinder.FindUnitPath(
self.Location, destination,
mobile.GetMovementType() );
mobile.GetMovementType(), self );
this.destination = destination;
this.nearEnough = nearEnough;
}
@@ -65,7 +65,7 @@ namespace OpenRA.Traits.Activities
this.getPath = (self, mobile) =>
self.World.PathFinder.FindPath(
PathSearch.FromPoint( self.World, self.Location, destination, mobile.GetMovementType(), false )
.WithCustomBlocker( self.World.PathFinder.AvoidUnitsNear( self.Location, 4 ))
.WithCustomBlocker( self.World.PathFinder.AvoidUnitsNear( self.Location, 4, self ))
.WithIgnoredBuilding( ignoreBuilding ));
this.destination = destination;
@@ -78,7 +78,7 @@ namespace OpenRA.Traits.Activities
{
this.getPath = ( self, mobile ) => self.World.PathFinder.FindUnitPathToRange(
self.Location, target.Location,
mobile.GetMovementType(), range );
mobile.GetMovementType(), range, self );
this.destination = null;
this.nearEnough = range;
}