mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-01 09:42:27 +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
|
// Push you a little bit off the wall
|
||||||
*psect = hitinfo.hitSector;
|
*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.);
|
newdist = (npos.X * daang.Sin() + npos.Y * -daang.Cos()) * (1. / 1024.);
|
||||||
|
|
||||||
if (fabs(npos.X) > fabs(npos.Y))
|
if (fabs(npos.X) > fabs(npos.Y))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue