mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-25 04:00:56 +00:00
fixup! Use angle instead of range when checking identical points
This commit is contained in:
parent
4cdd638a07
commit
bc5a0098ea
1 changed files with 2 additions and 2 deletions
|
@ -1076,9 +1076,9 @@ boolean R_IsPointInSector(sector_t *sector, fixed_t x, fixed_t y)
|
|||
ca = R_PointToAngle2(v.x, v.y, cv->x, cv->y) - angle;
|
||||
da = R_PointToAngle2(v.x, v.y, dv->x, dv->y) - angle;
|
||||
if (ca > ANGLE_180)
|
||||
ca = ANGLE_180 - (ca - ANGLE_180);
|
||||
ca = -ca;
|
||||
if (da > ANGLE_180)
|
||||
da = ANGLE_180 - (da - ANGLE_180);
|
||||
da = -da;
|
||||
|
||||
if (ca > da)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue