Remove Util.GetFacing.
This commit is contained in:
@@ -121,7 +121,7 @@ namespace OpenRA.Mods.Common.Effects
|
||||
target += WVec.FromPDF(world.SharedRandom, 2) * maxOffset / 1024;
|
||||
}
|
||||
|
||||
towardsTargetFacing = OpenRA.Traits.Util.GetFacing(target - headPos, 0);
|
||||
towardsTargetFacing = (target - headPos).Yaw.Facing;
|
||||
|
||||
// Update the target position with the range we shoot beyond the target by
|
||||
// I.e. we can deliberately overshoot, so aim for that position
|
||||
|
||||
@@ -123,7 +123,7 @@ namespace OpenRA.Mods.Common.Effects
|
||||
target += WVec.FromPDF(world.SharedRandom, 2) * maxOffset / 1024;
|
||||
}
|
||||
|
||||
facing = OpenRA.Traits.Util.GetFacing(target - pos, 0);
|
||||
facing = (target - pos).Yaw.Facing;
|
||||
length = Math.Max((target - pos).Length / speed.Length, 1);
|
||||
|
||||
if (!string.IsNullOrEmpty(info.Image))
|
||||
|
||||
Reference in New Issue
Block a user