diff options
-rw-r--r-- | hst.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } } |