order names stuff to remove clashes in ra-nng

This commit is contained in:
Chris Forbes
2010-05-16 22:15:41 +12:00
parent 9d5eab74b1
commit de9ec12c8c
2 changed files with 6 additions and 3 deletions

View File

@@ -37,14 +37,14 @@ namespace OpenRA.Mods.RA
protected override void OnActivate()
{
Game.controller.orderGenerator = new GenericSelectTarget(Owner.PlayerActor, "Airstrike", "ability");
Game.controller.orderGenerator = new GenericSelectTarget(Owner.PlayerActor, Info.OrderName, "ability");
}
public void ResolveOrder(Actor self, Order order)
{
if (!IsAvailable) return;
if (order.OrderString == "Airstrike")
if (order.OrderString == Info.OrderName)
{
var startPos = Owner.World.ChooseRandomEdgeCell();