fix exploitability of nuke and ion cannon

This commit is contained in:
Chris Forbes
2010-11-23 19:12:33 +13:00
committed by Paul Chote
parent 1629958970
commit f892eb629e
2 changed files with 3 additions and 1 deletions

View File

@@ -26,6 +26,8 @@ namespace OpenRA.Mods.Cnc
public void ResolveOrder(Actor self, Order order) public void ResolveOrder(Actor self, Order order)
{ {
if (!IsReady) return;
if (order.OrderString == "IonCannon") if (order.OrderString == "IonCannon")
{ {
Owner.World.AddFrameEndTask(w => Owner.World.AddFrameEndTask(w =>

View File

@@ -33,7 +33,7 @@ namespace OpenRA.Mods.RA
public void ResolveOrder(Actor self, Order order) public void ResolveOrder(Actor self, Order order)
{ {
if (!IsAvailable) return; if (!IsReady) return;
if (order.OrderString == "NuclearMissile") if (order.OrderString == "NuclearMissile")
{ {