mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- Blood: simplify GetWallAngle
This commit is contained in:
parent
7a7537961b
commit
93cdaee9f0
1 changed files with 2 additions and 2 deletions
|
@ -286,8 +286,8 @@ bool CheckProximityWall(int nWall, int x, int y, int nDist)
|
|||
|
||||
int GetWallAngle(walltype* pWall)
|
||||
{
|
||||
int nWall2 = pWall->point2;
|
||||
return getangle(wall[nWall2].x - pWall->x, wall[nWall2].y - pWall->y);
|
||||
auto delta = pWall->delta();
|
||||
return getangle(delta.x, delta.y);
|
||||
}
|
||||
|
||||
void GetWallNormal(int nWall, int *pX, int *pY)
|
||||
|
|
Loading…
Reference in a new issue