edge collision now works again

This commit is contained in:
Anna Rose 2011-06-27 20:32:29 -04:00
parent 07fc8c67c1
commit 39db9b6c12

View File

@ -70,7 +70,7 @@ bool Graph::crosses_edge(Vertex* a, Vertex* b)
for (list<Vertex*>::iterator subcursor = v->neighbors.begin();
subcursor != v->neighbors.end(); subcursor++)
{
Vertex* w = *cursor;
Vertex* w = *subcursor;
if (MathUtils::lines_intersect(a->x, a->y, b->x, b->y,
v->x, v->y, w->x, w->y))