fixup! Use angle instead of range when checking identical points

This commit is contained in:
Gustaf Alhäll 2024-01-03 21:10:11 +01:00
parent 4cdd638a07
commit bc5a0098ea
No known key found for this signature in database
GPG key ID: 6C1F67D690CDEDFD

View file

@ -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)
{