Kill Controller

This commit is contained in:
Paul Chote
2010-07-25 19:21:53 +12:00
parent e677be7908
commit 305fa03355
31 changed files with 208 additions and 234 deletions

View File

@@ -46,7 +46,7 @@ namespace OpenRA.Mods.RA
if (order.OrderString == "ChronoshiftDeploy")
{
if (self.Owner == self.World.LocalPlayer)
Game.controller.orderGenerator = new SetChronoTankDestination(self);
self.World.OrderGenerator = new SetChronoTankDestination(self);
return;
}
@@ -55,7 +55,7 @@ namespace OpenRA.Mods.RA
{
if (self.Owner == self.World.LocalPlayer)
{
Game.controller.CancelInputMode();
self.World.CancelInputMode();
self.World.AddFrameEndTask(w => w.Add(new MoveFlash(self.World, order.TargetLocation)));
}