Remove CVec -> WVec conversion.
This commit is contained in:
@@ -226,7 +226,7 @@ namespace OpenRA.Mods.RA
|
||||
// Unit previews
|
||||
foreach (var unit in power.UnitsInRange(sourceLocation))
|
||||
{
|
||||
var offset = (xy - sourceLocation).ToWVec();
|
||||
var offset = world.Map.CenterOfCell(xy) - world.Map.CenterOfCell(sourceLocation);
|
||||
if (manager.self.Owner.Shroud.IsTargetable(unit))
|
||||
foreach (var r in unit.Render(wr))
|
||||
yield return r.OffsetBy(offset);
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace OpenRA.Mods.RA
|
||||
{
|
||||
new CenterPositionInit(w.Map.CenterOfCell(startPos) + new WVec(WRange.Zero, WRange.Zero, altitude)),
|
||||
new OwnerInit(self.Owner),
|
||||
new FacingInit(Util.GetFacing(order.TargetLocation - startPos, 0))
|
||||
new FacingInit(w.Map.FacingBetween(startPos, order.TargetLocation, 0))
|
||||
});
|
||||
|
||||
a.CancelActivity();
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace OpenRA.Mods.RA
|
||||
{
|
||||
new CenterPositionInit(self.World.Map.CenterOfCell(enterCell) + new WVec(WRange.Zero, WRange.Zero, altitude)),
|
||||
new OwnerInit(self.Owner),
|
||||
new FacingInit(Util.GetFacing(order.TargetLocation - enterCell, 0))
|
||||
new FacingInit(self.World.Map.FacingBetween(enterCell, order.TargetLocation, 0))
|
||||
});
|
||||
|
||||
plane.CancelActivity();
|
||||
|
||||
Reference in New Issue
Block a user