Removed logically dead code.

targetPassedBy is always true in this section
and - times - is +.
This commit is contained in:
Matthias Mailänder
2016-05-05 10:19:38 +02:00
parent 1bc4200128
commit 3d865d46e7

View File

@@ -653,7 +653,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;