Rename FlyCircle to FlyIdle and make it tick TickIdle

It now handles both hovering and circling aircraft, for consistency.
This commit is contained in:
reaperrr
2019-07-18 17:36:09 +02:00
committed by teinarss
parent ce29dcad87
commit 801f5ba525
4 changed files with 24 additions and 24 deletions

View File

@@ -712,8 +712,8 @@ namespace OpenRA.Mods.Common.Traits
self.QueueActivity(new TakeOff(self));
else if (Info.IdleBehavior == IdleBehaviorType.Land && Info.LandableTerrainTypes.Count > 0)
self.QueueActivity(new Land(self));
else if (!Info.CanHover)
self.QueueActivity(new FlyCircle(self, -1, Info.IdleTurnSpeed > -1 ? Info.IdleTurnSpeed : TurnSpeed));
else
self.QueueActivity(new FlyIdle(self));
}
}