edge collision now works again
This commit is contained in:
parent
07fc8c67c1
commit
39db9b6c12
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user