diff --git a/apps/openmw/mwmechanics/aiwander.cpp b/apps/openmw/mwmechanics/aiwander.cpp index c25821b4e..276d1fac6 100644 --- a/apps/openmw/mwmechanics/aiwander.cpp +++ b/apps/openmw/mwmechanics/aiwander.cpp @@ -221,21 +221,7 @@ namespace MWMechanics if(tempDist < closestNode) index = counterThree; } -#if 0 - if(actor.getClass().getName(actor) == "Rat") - { - std::cout << "rat allowed "<< std::to_string(mAllowedNodes.size()) - +" mDist "+std::to_string(mDistance) - +" pos "+std::to_string(static_cast(npcPos[0])) - +", "+std::to_string(static_cast(npcPos[1])) - < 1) - { mTrimCurrentNode = false; -//#if 0 - std::cout << "deleted "<< std::to_string(mCurrentNode.mX) - +", "+std::to_string(mCurrentNode.mY) << std::endl; -//#endif -//#if 0 - std::cout << "allowed size "<< - std::to_string(mAllowedNodes.size()) << std::endl; -//#endif - } else mAllowedNodes.push_back(mCurrentNode); mCurrentNode = temp; @@ -428,15 +401,7 @@ namespace MWMechanics } // Choose a different node and delete this one from possible nodes because it is uncreachable: else - { mAllowedNodes.erase(mAllowedNodes.begin() + randNode); -//#if 0 - //std::cout << "actor \""<< actor.getClass().getName(actor) << "\"" << std::endl; - if(actor.getClass().getName(actor) == "Rat") - std::cout << "erase no path "<< std::to_string(mAllowedNodes[randNode].mX) - +", "+std::to_string(mAllowedNodes[randNode].mY) << std::endl; -//#endif - } } } @@ -506,11 +471,6 @@ namespace MWMechanics while(paths.size() >= 2) { ESM::Pathgrid::Point pt = paths.back(); -#if 0 - std::cout << "looking for "<< - "pt "+std::to_string(pt.mX)+", "+std::to_string(pt.mY) - <mName == "Gnisis, Arvs-Drelen") - for(unsigned int v = 0; v < mPathgrid->mPoints.size(); v++) - { - std::cout << "SCC \"X:" << - std::to_string(mPathgrid->mPoints[v].mX) - +", Y:"+std::to_string(mPathgrid->mPoints[v].mY) - +", Num:"+std::to_string(mSCCId) - +", Point:"+std::to_string(v) - +", Group:"+std::to_string(mGraph[v].componentId) - <<"\""<