Skip to content

Commit

Permalink
Fixed mix up in the return value of P_PointOnLineSide & P_PointOnLine…
Browse files Browse the repository at this point in the history
…defSide.
  • Loading branch information
danij committed Jul 24, 2008
1 parent 8cbbb4c commit de78d80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doomsday/engine/portable/src/p_maputil.c
Expand Up @@ -222,8 +222,8 @@ int P_PointOnLineSide(float x, float y, float lX, float lY, float lDX,
*/
int P_PointOnDivLineSidef(fvertex_t* pnt, fdivline_t* dline)
{
return P_PointOnLineSide(pnt->pos[VX], pnt->pos[VY], dline->pos[VX],
dline->pos[VY], dline->dX, dline->dY);
return !P_PointOnLineSide(pnt->pos[VX], pnt->pos[VY], dline->pos[VX],
dline->pos[VY], dline->dX, dline->dY);
}

/**
Expand All @@ -232,8 +232,8 @@ int P_PointOnDivLineSidef(fvertex_t* pnt, fdivline_t* dline)
*/
int P_PointOnLinedefSide(float x, float y, linedef_t* line)
{
return P_PointOnLineSide(x, y, line->L_v1pos[VX], line->L_v1pos[VY],
line->dX, line->dY);
return !P_PointOnLineSide(x, y, line->L_v1pos[VX], line->L_v1pos[VY],
line->dX, line->dY);
}

/**
Expand Down

0 comments on commit de78d80

Please sign in to comment.