summaryrefslogtreecommitdiff
path: root/comp.c
diff options
context:
space:
mode:
Diffstat (limited to 'comp.c')
-rw-r--r--comp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/comp.c b/comp.c
index c0a673a..9427363 100644
--- a/comp.c
+++ b/comp.c
@@ -84,6 +84,7 @@ void comp_visit(struct leg *l)
{
struct visit *v = l->visits + l->n_visits++;
v->darts = calloc(3, sizeof(*(v->darts)));
+ v->ccoords = calloc(3, sizeof(*(v->ccoords)));
for (int i = 0; i < 3; ++i) {
struct segment ts = next_dart(l->rem - v->points, 3 - i);
@@ -91,6 +92,7 @@ void comp_visit(struct leg *l)
struct pcoords dc = throw_dart(tc);
struct segment ds = get_segment(dc);
+ v->ccoords[v->n_darts] = pol_to_cart(dc); // FIXME double conversion
v->darts[v->n_darts++] = ds;
v->points += segment_points(ds);