Skip to content

Commit

Permalink
Fixed: LineDef_PointDistance()
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Apr 19, 2012
1 parent 793f19f commit 137e3dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/linedef.c
Expand Up @@ -57,7 +57,7 @@ static LineDef* findBlendNeighbor(const LineDef* l, byte side, byte right,
coord_t LineDef_PointDistance(LineDef* line, coord_t const point[2], coord_t* offset)
{
assert(line);
return V2d_PointLineDistance(point, line->L_v1origin, line->L_v2origin, offset);
return V2d_PointLineDistance(point, line->L_v1origin, line->direction, offset);
}

coord_t LineDef_PointXYDistance(LineDef* line, coord_t x, coord_t y, coord_t* offset)
Expand Down

0 comments on commit 137e3dc

Please sign in to comment.