fix infantry entering buildings

This commit is contained in:
Bob
2010-11-06 22:27:28 +13:00
parent 5e5456191c
commit 8a96c5f7b5
8 changed files with 6 additions and 12 deletions

View File

@@ -38,7 +38,7 @@ namespace OpenRA.Mods.RA.Move
this.nearEnough = 0;
}
public Move( int2 destination, int nearEnough )
public Move( int2 destination, int nearEnough )
{
this.getPath = (self,mobile) => self.World.WorldActor.Trait<PathFinder>().FindUnitPath( mobile.toCell, destination, self );
this.destination = destination;
@@ -50,7 +50,6 @@ namespace OpenRA.Mods.RA.Move
this.getPath = (self,mobile) =>
self.World.WorldActor.Trait<PathFinder>().FindPath(
PathSearch.FromPoint( self.World, mobile.Info, mobile.toCell, destination, false )
.WithCustomBlocker( self.World.WorldActor.Trait<PathFinder>().AvoidUnitsNear( mobile.toCell, 4, self ))
.WithIgnoredBuilding( ignoreBuilding ));
this.destination = destination;