fix interaction between autoattack and idleanimation

This commit is contained in:
Bob
2010-11-16 10:45:36 +13:00
committed by Chris Forbes
parent 7bd7f4e56b
commit a7f42dcf0c
6 changed files with 10 additions and 11 deletions

View File

@@ -20,7 +20,7 @@ namespace OpenRA.Mods.RA.Air
class ReturnOnIdle : INotifyIdle
{
public void Idle(Actor self)
public void TickIdle(Actor self)
{
var altitude = self.Trait<Aircraft>().Altitude;
if (altitude == 0) return; // we're on the ground, let's stay there.
@@ -44,7 +44,7 @@ namespace OpenRA.Mods.RA.Air
class FlyAwayOnIdle : INotifyIdle
{
public void Idle(Actor self)
public void TickIdle(Actor self)
{
self.QueueActivity(new FlyOffMap());
self.QueueActivity(new RemoveSelf());