1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 03:45:32 +00:00

Attempt to fix naming conflict on windows

This commit is contained in:
scrawl 2017-03-15 17:51:00 +01:00
parent 3d58ba7301
commit a070551af3

View file

@ -37,7 +37,7 @@ namespace
return targetlevel;
}
float distance(const osg::BoundingBox& box, const osg::Vec3f& v)
float distanceToBox(const osg::BoundingBox& box, const osg::Vec3f& v)
{
if (box.contains(v))
return 0;
@ -79,7 +79,7 @@ public:
virtual bool isSufficientDetail(QuadTreeNode* node, const osg::Vec3f& eyePoint)
{
float dist = distance(node->getBoundingBox(), eyePoint);
float dist = distanceToBox(node->getBoundingBox(), eyePoint);
int nativeLodLevel = Log2(static_cast<unsigned int>(node->getSize()/mMinSize));
int lodLevel = Log2(static_cast<unsigned int>(dist/(8192*mMinSize)));