From 53b32ea161bf2d7f9963394e30ae9b97cb6d476e Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 7 Sep 2022 20:41:06 +1000 Subject: [PATCH] - Leverage `walltype`'s `delta()` method in chase cam code. --- source/core/gamefuncs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/gamefuncs.cpp b/source/core/gamefuncs.cpp index 77875acb3..68dd5efe7 100644 --- a/source/core/gamefuncs.cpp +++ b/source/core/gamefuncs.cpp @@ -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))