mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-13 06:13:18 +00:00
fixup! Fix physics quirkiness on slopes with convex sectors
This commit is contained in:
parent
d6c53b0438
commit
76becac078
1 changed files with 2 additions and 2 deletions
|
@ -1036,8 +1036,8 @@ boolean R_IsPointInSector(sector_t *sector, fixed_t x, fixed_t y)
|
||||||
// do some correction in order to prevent points outside the line from being measured.
|
// do some correction in order to prevent points outside the line from being measured.
|
||||||
if (R_PointToDist2(v.x, v.y, v1->x, v1->y) > R_PointToDist2(v1->x, v1->y, v2->x, v2->y))
|
if (R_PointToDist2(v.x, v.y, v1->x, v1->y) > R_PointToDist2(v1->x, v1->y, v2->x, v2->y))
|
||||||
v = *v1;
|
v = *v1;
|
||||||
if (R_PointToDist2(v.x, v.y, v2->x, v2->y) > R_PointToDist2(v1->x, v1->y, v2->x, v2->y))
|
else if (R_PointToDist2(v.x, v.y, v2->x, v2->y) > R_PointToDist2(v1->x, v1->y, v2->x, v2->y))
|
||||||
v = *v1;
|
v = *v2;
|
||||||
dist = R_PointToDist2(v.x, v.y, x, y);
|
dist = R_PointToDist2(v.x, v.y, x, y);
|
||||||
if (dist < closestdist)
|
if (dist < closestdist)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue