summaryrefslogtreecommitdiff
path: root/hst.c
diff options
context:
space:
mode:
Diffstat (limited to 'hst.c')
-rw-r--r--hst.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hst.c b/hst.c
index e6628b1..6207b57 100644
--- a/hst.c
+++ b/hst.c
@@ -114,9 +114,9 @@ main(int argc, char *argv[])
cell = &hst.cells[p[0] / INTERVAL][p[1] / INTERVAL][p[2] / INTERVAL];
calculate_index(&hst, cell->max, &i, &j, &k);
- p[0] = i * INTERVAL;
- p[1] = j * INTERVAL;
- p[2] = k * INTERVAL;
+ p[0] = i * INTERVAL + INTERVAL / 2;
+ p[1] = j * INTERVAL + INTERVAL / 2;
+ p[2] = k * INTERVAL + INTERVAL / 2;
}
}