mirror of https://github.com/ZDoom/qzdoom.git
Fixed compatibility flags comparison for point-on-line
Now it works in both cases: for compatibility mode set by user and for internal compatibility handler
This commit is contained in:
parent
2ce8ee7154
commit
fea2cb38cc
|
@ -242,7 +242,7 @@ inline int P_PointOnLineSide (fixed_t x, fixed_t y, const line_t *line)
|
||||||
{
|
{
|
||||||
extern int P_VanillaPointOnLineSide(fixed_t x, fixed_t y, const line_t* line);
|
extern int P_VanillaPointOnLineSide(fixed_t x, fixed_t y, const line_t* line);
|
||||||
|
|
||||||
return compatflags2 & COMPATF2_POINTONLINE
|
return i_compatflags2 & COMPATF2_POINTONLINE
|
||||||
? P_VanillaPointOnLineSide(x, y, line)
|
? P_VanillaPointOnLineSide(x, y, line)
|
||||||
: DMulScale32 (y-line->v1->y, line->dx, line->v1->x-x, line->dy) > 0;
|
: DMulScale32 (y-line->v1->y, line->dx, line->v1->x-x, line->dy) > 0;
|
||||||
}
|
}
|
||||||
|
@ -260,7 +260,7 @@ inline int P_PointOnDivlineSide (fixed_t x, fixed_t y, const divline_t *line)
|
||||||
{
|
{
|
||||||
extern int P_VanillaPointOnDivlineSide(fixed_t x, fixed_t y, const divline_t* line);
|
extern int P_VanillaPointOnDivlineSide(fixed_t x, fixed_t y, const divline_t* line);
|
||||||
|
|
||||||
return (compatflags2 & COMPATF2_POINTONLINE)
|
return (i_compatflags2 & COMPATF2_POINTONLINE)
|
||||||
? P_VanillaPointOnDivlineSide(x, y, line)
|
? P_VanillaPointOnDivlineSide(x, y, line)
|
||||||
: (DMulScale32 (y-line->y, line->dx, line->x-x, line->dy) > 0);
|
: (DMulScale32 (y-line->y, line->dx, line->x-x, line->dy) > 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue