From 862d73dbc2d467a777c6ba84a82f32f7aaca1f22 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 21 Feb 2016 13:46:58 +0000 Subject: [PATCH] Quadrant fix. --- src/battle/quadtree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/battle/quadtree.c b/src/battle/quadtree.c index a09cb33..75991cb 100644 --- a/src/battle/quadtree.c +++ b/src/battle/quadtree.c @@ -167,7 +167,7 @@ static int getIndex(Quadtree *root, int x, int y, int w, int h) { if (topQuadrant) { - index = 1; + index = 0; } else if (bottomQuadrant) { @@ -178,7 +178,7 @@ static int getIndex(Quadtree *root, int x, int y, int w, int h) { if (topQuadrant) { - index = 0; + index = 1; } else if (bottomQuadrant) {