Moved common functions behind name decoration.

This commit is contained in:
Mikko Mononen
2010-04-14 18:45:46 +00:00
parent b21e854c9a
commit 10b330ffb4
23 changed files with 1119 additions and 530 deletions

View File

@@ -99,7 +99,7 @@ void OffMeshConnectionTool::handleClick(const float* p, bool shift)
for (int i = 0; i < geom->getOffMeshConnectionCount()*2; ++i)
{
const float* v = &verts[i*3];
float d = vdistSqr(p, v);
float d = rcVdistSqr(p, v);
if (d < nearestDist)
{
nearestDist = d;
@@ -118,7 +118,7 @@ void OffMeshConnectionTool::handleClick(const float* p, bool shift)
// Create
if (!m_hitPosSet)
{
vcopy(m_hitPos, p);
rcVcopy(m_hitPos, p);
m_hitPosSet = true;
}
else