mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-01 05:20:43 +00:00
- Leverage walltype
's delta()
method in chase cam code.
This commit is contained in:
parent
7f1fb3c024
commit
53b32ea161
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue