Make EMP freeze mobile actors.

This commit is contained in:
Paul Chote
2014-10-04 13:38:46 +13:00
parent 6b54575569
commit fde963a993
3 changed files with 11 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ namespace OpenRA.Mods.RA
public object Create(ActorInitializer init) { return new DisableUpgrade(this); }
}
public class DisableUpgrade : IUpgradable, IDisable
public class DisableUpgrade : IUpgradable, IDisable, IDisableMove
{
readonly DisableUpgradeInfo info;
bool enabled;
@@ -44,5 +44,7 @@ namespace OpenRA.Mods.RA
}
public bool Disabled { get { return enabled; } }
public bool MoveDisabled(Actor self) { return enabled; }
}
}