having a look at this perf stuff...

This commit is contained in:
Chris Forbes
2010-03-28 10:34:43 +13:00
parent e1f6a741b8
commit 6b7d824b9b
7 changed files with 33 additions and 17 deletions

View File

@@ -64,7 +64,8 @@ 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 )).WithIgnoredBuilding( ignoreBuilding ));
.WithCustomBlocker( self.World.PathFinder.AvoidUnitsNear( self.Location, 4 ))
.WithIgnoredBuilding( ignoreBuilding ));
this.destination = destination;
this.nearEnough = 0;