move some MobileInfo-related bits onto MobileInfo
This commit is contained in:
@@ -74,7 +74,7 @@ namespace OpenRA.Mods.RA.Move
|
||||
{
|
||||
var mi = self.Info.Traits.Get<MobileInfo>();
|
||||
var tilesInRange = world.FindTilesInCircle(target, range)
|
||||
.Where( t => Mobile.CanEnterCell(self.World, mi, t, null, true));
|
||||
.Where( t => mi.CanEnterCell(self.World, t, null, true));
|
||||
|
||||
var path = FindBidiPath(
|
||||
PathSearch.FromPoints(world, mi, tilesInRange, src, true)
|
||||
|
||||
Reference in New Issue
Block a user