1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-02-04 02:24:00 +00:00

Disable path finding debug spam.

This commit is contained in:
fgenesis 2013-08-28 04:33:12 +02:00
parent 01d9211a34
commit 18a19ca115

View file

@ -408,9 +408,9 @@ void PathFinding::molestPath(VectorPath &path)
} }
} }
} }
std::ostringstream os; /*std::ostringstream os;
os << "pushing node [" << i << "] out by (" << n.x << ", " << n.y << ") - dist: " << dist << " maxDist: " << maxDist; os << "pushing node [" << i << "] out by (" << n.x << ", " << n.y << ") - dist: " << dist << " maxDist: " << maxDist;
debugLog(os.str()); debugLog(os.str());*/
//path.getPathNode(i)->value += n; //path.getPathNode(i)->value += n;
normals[i] = n; normals[i] = n;
} }
@ -453,9 +453,9 @@ void PathFinding::molestPath(VectorPath &path)
//bowl_loop: //bowl_loop:
sz=path.getNumPathNodes(); sz=path.getNumPathNodes();
std::ostringstream os; /*std::ostringstream os;
os << "kill bowls # " << runs; os << "kill bowls # " << runs;
debugLog(os.str()); debugLog(os.str());*/
for (i = start; i < sz-1; i++) for (i = start; i < sz-1; i++)
{ {
@ -502,9 +502,9 @@ void PathFinding::molestPath(VectorPath &path)
*/ */
{ {
path.removeNodes(i+1, lastSuccessNode-1); path.removeNodes(i+1, lastSuccessNode-1);
std::ostringstream os; /*std::ostringstream os;
os << "killing bowl: " << i+1 << " - " << lastSuccessNode-1; os << "killing bowl: " << i+1 << " - " << lastSuccessNode-1;
debugLog(os.str()); debugLog(os.str());*/
//start = lastSuccessNode - (lastSuccessNode-i); //start = lastSuccessNode - (lastSuccessNode-i);
//start = i+1; //start = i+1;
//i = i+1; //i = i+1;
@ -516,7 +516,7 @@ void PathFinding::molestPath(VectorPath &path)
} }
sz = path.getNumPathNodes(); sz = path.getNumPathNodes();
} }
debugLog("kill bowls done"); //debugLog("kill bowls done");
sz=path.getNumPathNodes(); sz=path.getNumPathNodes();
// remove last node // remove last node