Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions MapPosition/MapPosition/MapPosition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,7 @@ private static int PointInPolygon(Point[] path, Vector3 pt)

private static bool IsPointInPolygon(Point[] path, Vector3 pt)
{
if (PointInPolygon(path, pt) == 0)
return false;
else
return true;
return !(PointInPolygon(path, pt) == 0)
}
#endregion

Expand Down