forked from teamnwah/openmw-tes3coop
Neighbour fix
This commit is contained in:
parent
14e4b985ad
commit
b92da9ae93
1 changed files with 4 additions and 0 deletions
|
@ -181,6 +181,10 @@ void QuadTreeNode::initNeighbours()
|
||||||
{
|
{
|
||||||
for (int i=0; i<4; ++i)
|
for (int i=0; i<4; ++i)
|
||||||
mNeighbours[i] = searchNeighbourRecursive(this, (Direction)i);
|
mNeighbours[i] = searchNeighbourRecursive(this, (Direction)i);
|
||||||
|
|
||||||
|
if (hasChildren())
|
||||||
|
for (int i=0; i<4; ++i)
|
||||||
|
mChildren[i]->initNeighbours();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QuadTreeNode::initAabb()
|
void QuadTreeNode::initAabb()
|
||||||
|
|
Loading…
Reference in a new issue