1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 07:53:51 +00:00

some cleanup

This commit is contained in:
Marc Zinnschlag 2014-01-28 12:36:10 +01:00
parent fd5486864a
commit a473c3f619
2 changed files with 4 additions and 12 deletions

View file

@ -66,14 +66,6 @@ namespace MWMechanics
{
cellX = cell->mData.mX;
cellY = cell->mData.mY;
float xCell = 0;
float yCell = 0;
if(cell->isExterior())
{
xCell = cell->mData.mX * ESM::Land::REAL_SIZE;
yCell = cell->mData.mY * ESM::Land::REAL_SIZE;
}
ESM::Pathgrid::Point dest;
dest.mX = mX;

View file

@ -197,7 +197,7 @@ namespace MWMechanics
void PathFinder::cleanUpAStar()
{
for(int i=0;i<mGraph.size();i++)
for(int i=0;i<static_cast<int> (mGraph.size());i++)
{
mGraph[i].parent = -1;
mGScore[i] = -1;
@ -226,7 +226,7 @@ namespace MWMechanics
closedset.push_back(current);
for(int j = 0;j<mGraph[current].edges.size();j++)
for(int j = 0;j<static_cast<int> (mGraph[current].edges.size());j++)
{
//int next = mGraph[current].edges[j].destination
if(std::find(closedset.begin(),closedset.end(),mGraph[current].edges[j].destination) == closedset.end())