/* $Id$
This file is part of the MSP Märklin suite
-Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa
Distributed under the GPL
*/
bool rm=false;
for(vector<Endpoint>::iterator j=i+1; j!=endpoints.end();)
{
- float dx=i->x-j->x;
- float dy=i->y-j->y;
+ float dx=i->pos.x-j->pos.x;
+ float dy=i->pos.y-j->pos.y;
if(dx*dx+dy*dy<0.0001)
{
float da=i->dir-j->dir;