Don't repulse actors flying with another altitude
This commit is contained in:
@@ -95,7 +95,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
return WVec.Zero;
|
return WVec.Zero;
|
||||||
|
|
||||||
return self.World.FindActorsInCircle(self.CenterPosition, info.IdealSeparation)
|
return self.World.FindActorsInCircle(self.CenterPosition, info.IdealSeparation)
|
||||||
.Where(a => !a.IsDead && a.HasTrait<Aircraft>())
|
.Where(a => !a.IsDead && a.HasTrait<Aircraft>() && a.Info.Traits.Get<AircraftInfo>().CruiseAltitude == info.CruiseAltitude)
|
||||||
.Select(GetRepulsionForce)
|
.Select(GetRepulsionForce)
|
||||||
.Aggregate(WVec.Zero, (a, b) => a + b);
|
.Aggregate(WVec.Zero, (a, b) => a + b);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user