- fixed AngleChase pitch calculation.

This had one variable replacement missing.
This commit is contained in:
Christoph Oelckers 2022-10-21 23:57:49 +02:00
parent 81a688ee75
commit ff25dc7ae5

View file

@ -1031,7 +1031,7 @@ Collision AngleChase(DExhumedActor* pActor, DExhumedActor* pActor2, int threshol
auto vec = nAngle.ToVector() * threshold * (1/64.) * cospitch;
auto veclen = vec.Length();
double zz = g_sindeg(pActor->vel.Z * 45) * veclen;
double zz = pActor->pitch.Sin() * veclen;
return movesprite(pActor, vec, zz * 16 + BobVal(zbob) * 2, 0, nClipType);
}