targetPassedBy is always false here so avoid redundant check.

This commit is contained in:
Matthias Mailänder
2016-04-17 14:30:22 +02:00
parent c2c26cbcdc
commit 3e536a61e6

View File

@@ -642,7 +642,7 @@ namespace OpenRA.Mods.Common.Effects
else
{
// Aim for the target
var vDist = new WVec(-relTarHgt, -relTarHorDist * (targetPassedBy ? -1 : 1), 0);
var vDist = new WVec(-relTarHgt, -relTarHorDist, 0);
desiredVFacing = (sbyte)vDist.HorizontalLengthSquared != 0 ? vDist.Yaw.Facing : vFacing;
if (desiredVFacing < 0 && info.VerticalRateOfTurn < (sbyte)vFacing)
desiredVFacing = 0;