- Fixed: A_CheckLOF was doubling up on its pitch and reversing it when without a target.

This commit is contained in:
MajorCooke 2016-01-26 07:20:55 -06:00
parent 9f8dee45c4
commit cb43ce9cfc

View file

@ -3472,7 +3472,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckLOF)
else return; else return;
angle >>= ANGLETOFINESHIFT; angle >>= ANGLETOFINESHIFT;
pitch = (0-pitch)>>ANGLETOFINESHIFT; pitch >>= ANGLETOFINESHIFT;
vx = FixedMul (finecosine[pitch], finecosine[angle]); vx = FixedMul (finecosine[pitch], finecosine[angle]);
vy = FixedMul (finecosine[pitch], finesine[angle]); vy = FixedMul (finecosine[pitch], finesine[angle]);