fix #99 chronoshift-deploy didnt need to be charged

This commit is contained in:
Chris Forbes
2010-09-07 17:33:11 +12:00
parent 6632feb696
commit 950dd4e85c

View File

@@ -45,8 +45,9 @@ namespace OpenRA.Mods.RA
{ {
if (order.OrderString == "ChronoshiftDeploy") if (order.OrderString == "ChronoshiftDeploy")
{ {
if (self.Owner == self.World.LocalPlayer) if (chargeTick <= 0)
self.World.OrderGenerator = new SetChronoTankDestination(self); if (self.Owner == self.World.LocalPlayer)
self.World.OrderGenerator = new SetChronoTankDestination(self);
return; return;
} }