summaryrefslogtreecommitdiff
path: root/indra/llmath/lloctree.h
diff options
context:
space:
mode:
authorcallum_linden <none@none>2014-11-14 14:52:12 -0800
committercallum_linden <none@none>2014-11-14 14:52:12 -0800
commit78a75ca00f77d98a2fc62e8828df2eb5600bbad4 (patch)
tree5381dc9caaa461c05dec76704248e0a804703e65 /indra/llmath/lloctree.h
parentee5463a903708629f41caeb2b6aca1334223781e (diff)
Cinder pointed out my fix here for clang pickiness was different from hers so I investigated and this is the causes of the slowdown - wrongly placed parens
Diffstat (limited to 'indra/llmath/lloctree.h')
-rwxr-xr-xindra/llmath/lloctree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llmath/lloctree.h b/indra/llmath/lloctree.h
index 4d4923acf0..280d2653d3 100755
--- a/indra/llmath/lloctree.h
+++ b/indra/llmath/lloctree.h
@@ -322,8 +322,8 @@ public:
//is it here?
if (isInside(data->getPositionGroup()))
{
- if (((getElementCount() < gOctreeMaxCapacity || ((getSize()[0] <= gOctreeMinSize) && contains(data->getBinRadius()))) ||
- ((data->getBinRadius() > getSize()[0] && parent && parent->getElementCount() >= gOctreeMaxCapacity))))
+ if ((((getElementCount() < gOctreeMaxCapacity || getSize()[0] <= gOctreeMinSize) && contains(data->getBinRadius())) ||
+ (data->getBinRadius() > getSize()[0] && parent && parent->getElementCount() >= gOctreeMaxCapacity)))
{ //it belongs here
mData.push_back(NULL);
mData[mElementCount] = data;