Convert Altitude to world coords.
Removes the obsolete AltitudeInit: use CenterPositionInit instead.
This commit is contained in:
@@ -114,8 +114,7 @@ namespace OpenRA.Mods.RA.Air
|
||||
|
||||
// Repulsion only applies when we're flying!
|
||||
var altitude = CenterPosition.Z;
|
||||
var cruiseAltitude = Info.CruiseAltitude * 1024 / Game.CellSize;
|
||||
if (altitude != cruiseAltitude)
|
||||
if (altitude != Info.CruiseAltitude.Range)
|
||||
return;
|
||||
|
||||
var otherHelis = self.World.FindActorsInCircle(self.CenterPosition, Info.IdealSeparation)
|
||||
|
||||
Reference in New Issue
Block a user