Removed logically dead code.
targetPassedBy is always true in this section and - times - is +.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user