diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-04-26 19:36:12 -0400 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-04-26 19:36:12 -0400 |
| commit | a2955af3efd48c48d06a2dcd9bca9cc3b5d8c403 (patch) | |
| tree | 400636fd745299e782883345b10b329b92b5fc61 /sigmodr/widgets | |
| parent | 20649b19ee9a2629ad307024340cf05228a97e9c (diff) | |
| download | sigen-a2955af3efd48c48d06a2dcd9bca9cc3b5d8c403.tar.gz sigen-a2955af3efd48c48d06a2dcd9bca9cc3b5d8c403.tar.xz sigen-a2955af3efd48c48d06a2dcd9bca9cc3b5d8c403.zip | |
Include the vertex if it is where the two polygons touch diagonally
Diffstat (limited to 'sigmodr/widgets')
| -rw-r--r-- | sigmodr/widgets/mapeditor/WorldMapPlacement.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp b/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp index 563018cd..bb157b02 100644 --- a/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp +++ b/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp @@ -110,6 +110,8 @@ static CollisionInfo findCollisions(const QPolygon& polygon1, const QPolygon& po Resolutions flags = 0; if (turnDirection(prevPoint1, point1, nextPoint1) != Invalid) flags |= Delete; + if (((point2.x() == prevPoint2.x()) && (prevPoint2.x() == nextPoint1.x())) || ((point2.y() == prevPoint2.y()) && (prevPoint2.y() == nextPoint1.y()))) + flags |= Include; data[point1] = NextTarget(flags, point1); break; } |
