mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-20 17:21:22 +00:00
Fix tiny mistake in R_PointOnSegSide
This commit is contained in:
parent
3c39edc1ef
commit
1ef47ea178
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ static inline INT32 R_PointOnSegSide(fixed_t x, fixed_t y, seg_t *line)
|
|||
fixed_t ldy = line->v2->y - ly;
|
||||
|
||||
// use cross product to determine side quickly
|
||||
INT64 v = ((INT64)y - ly) * ldx - ((INT64)x - lx) * ldy > 0;
|
||||
INT64 v = ((INT64)y - ly) * ldx - ((INT64)x - lx) * ldy;
|
||||
if (v == 0) // if we're on the line, use the old algorithm
|
||||
return R_OldPointOnSegSide(x, y, line);
|
||||
return v > 0;
|
||||
|
|
Loading…
Reference in a new issue