Actor.traits is implementation detail
This commit is contained in:
@@ -21,7 +21,7 @@ namespace OpenRA.Mods.RA
|
||||
{
|
||||
public void Idle(Actor self)
|
||||
{
|
||||
var altitude = self.traits.Get<Aircraft>().Altitude;
|
||||
var altitude = self.Trait<Aircraft>().Altitude;
|
||||
if (altitude == 0) return; // we're on the ground, let's stay there.
|
||||
|
||||
var airfield = ReturnToBase.ChooseAirfield(self);
|
||||
|
||||
Reference in New Issue
Block a user