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:
alexey.lysiuk 2015-09-15 19:27:05 +03:00
parent 2ce8ee7154
commit fea2cb38cc
1 changed files with 2 additions and 2 deletions

View File

@ -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);
return compatflags2 & COMPATF2_POINTONLINE
return i_compatflags2 & COMPATF2_POINTONLINE
? P_VanillaPointOnLineSide(x, y, line)
: 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);
return (compatflags2 & COMPATF2_POINTONLINE)
return (i_compatflags2 & COMPATF2_POINTONLINE)
? P_VanillaPointOnDivlineSide(x, y, line)
: (DMulScale32 (y-line->y, line->dx, line->x-x, line->dy) > 0);
}