- fixed: A_CheckLOF did the trace pitch calculation wrong.

This commit is contained in:
Christoph Oelckers 2016-04-03 21:26:57 +02:00
parent 02a586e6b2
commit 70b8afc5ec

View file

@ -3762,7 +3762,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckLOF)
}
else
{
pitch -= VecToAngle(xydist, target->Center());
pitch -= VecToAngle(xydist, target->Center() - pos.Z);
}
}
else if (flags & CLOFF_ALLOWNULL)