- Leverage walltype's delta() method in chase cam code.

This commit is contained in:
Mitchell Richters 2022-09-07 20:41:06 +10:00 committed by Christoph Oelckers
parent 7f1fb3c024
commit 53b32ea161

View file

@ -63,7 +63,7 @@ bool calcChaseCamPos(DVector3& ppos, DCoreActor* act, sectortype** psect, DAngle
{
// Push you a little bit off the wall
*psect = hitinfo.hitSector;
daang = (hitinfo.hitWall->point2Wall()->pos - hitinfo.hitWall->pos).Angle();
daang = hitinfo.hitWall->delta().Angle();
newdist = (npos.X * daang.Sin() + npos.Y * -daang.Cos()) * (1. / 1024.);
if (fabs(npos.X) > fabs(npos.Y))