Convert non-aircraft positioning to world coords.
This removes the incomplete and unused hover code on Mobile, which would be more trouble that it is currently worth to carry over.
This commit is contained in:
@@ -20,7 +20,7 @@ using OpenRA.Traits;
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
{
|
||||
|
||||
public class AircraftInfo : ITraitInfo, IFacingInfo, UsesInit<AltitudeInit>, UsesInit<LocationInit>, UsesInit<FacingInit>
|
||||
public class AircraftInfo : ITraitInfo, IFacingInfo, IOccupySpaceInfo, UsesInit<AltitudeInit>, UsesInit<LocationInit>, UsesInit<FacingInit>
|
||||
{
|
||||
public readonly int CruiseAltitude = 30;
|
||||
[ActorReference]
|
||||
@@ -78,7 +78,7 @@ namespace OpenRA.Mods.RA.Air
|
||||
|
||||
public Actor GetActorBelow()
|
||||
{
|
||||
if (self.Trait<IOccupySpace>().Altitude != 0)
|
||||
if (Altitude != 0)
|
||||
return null; // not on the ground.
|
||||
|
||||
return self.World.FindActorsInBox(self.CenterPosition, self.CenterPosition)
|
||||
|
||||
Reference in New Issue
Block a user