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

@@ -34,7 +34,7 @@ namespace OpenRA.Mods.Cnc
});
if (Owner == Owner.World.LocalPlayer)
Game.controller.CancelInputMode();
self.World.CancelInputMode();
FinishActivate();
}
@@ -42,7 +42,7 @@ namespace OpenRA.Mods.Cnc
protected override void OnActivate()
{
Game.controller.orderGenerator =
Game.world.OrderGenerator =
new GenericSelectTargetWithBuilding<IonControl>(Owner.PlayerActor, "IonCannon", "ability");
}
}