Remove TargetActor and TargetLocation from order issuing.
This commit is contained in:
@@ -40,8 +40,8 @@ namespace OpenRA
|
||||
public readonly string OrderString;
|
||||
public readonly Actor Subject;
|
||||
public readonly bool Queued;
|
||||
public Actor TargetActor;
|
||||
public CPos TargetLocation;
|
||||
public Actor TargetActor { get; private set; }
|
||||
public CPos TargetLocation { get; private set; }
|
||||
public string TargetString;
|
||||
public CPos ExtraLocation;
|
||||
public uint ExtraData;
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#endregion
|
||||
|
||||
using System.Collections.Generic;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Orders
|
||||
{
|
||||
@@ -52,7 +53,7 @@ namespace OpenRA.Orders
|
||||
|
||||
var queued = mi.Modifiers.HasModifier(Modifiers.Shift);
|
||||
foreach (var subject in Subjects)
|
||||
yield return new Order(OrderName, subject, queued) { TargetLocation = cell };
|
||||
yield return new Order(OrderName, subject, Target.FromCell(world, cell), queued);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user