From cb43ce9cfc9dddf61b9eccef718dc64ffde0a95c Mon Sep 17 00:00:00 2001 From: MajorCooke Date: Tue, 26 Jan 2016 07:20:55 -0600 Subject: [PATCH] - Fixed: A_CheckLOF was doubling up on its pitch and reversing it when without a target. --- src/thingdef/thingdef_codeptr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index 6926c1fac..fd804beaf 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -3472,7 +3472,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckLOF) else return; angle >>= ANGLETOFINESHIFT; - pitch = (0-pitch)>>ANGLETOFINESHIFT; + pitch >>= ANGLETOFINESHIFT; vx = FixedMul (finecosine[pitch], finecosine[angle]); vy = FixedMul (finecosine[pitch], finesine[angle]);