|
|
@ -8,16 +8,6 @@
|
|
|
|
#include "../world/subcellcollection.hpp"
|
|
|
|
#include "../world/subcellcollection.hpp"
|
|
|
|
#include "../world/pathgrid.hpp"
|
|
|
|
#include "../world/pathgrid.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
namespace
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
struct Point
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
unsigned char mConnectionNum;
|
|
|
|
|
|
|
|
std::vector<int> mOtherIndex;
|
|
|
|
|
|
|
|
Point() : mConnectionNum(0), mOtherIndex(0) {}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CSMTools::PathgridCheckStage::PathgridCheckStage (const CSMWorld::SubCellCollection<CSMWorld::Pathgrid>& pathgrids)
|
|
|
|
CSMTools::PathgridCheckStage::PathgridCheckStage (const CSMWorld::SubCellCollection<CSMWorld::Pathgrid>& pathgrids)
|
|
|
|
: mPathgrids (pathgrids)
|
|
|
|
: mPathgrids (pathgrids)
|
|
|
|
{}
|
|
|
|
{}
|
|
|
@ -44,7 +34,7 @@ void CSMTools::PathgridCheckStage::perform (int stage, CSMDoc::Messages& message
|
|
|
|
else if (pathgrid.mData.mS2 > static_cast<int>(pathgrid.mPoints.size()))
|
|
|
|
else if (pathgrid.mData.mS2 > static_cast<int>(pathgrid.mPoints.size()))
|
|
|
|
messages.push_back (std::make_pair (id, pathgrid.mId + " has more points than expected"));
|
|
|
|
messages.push_back (std::make_pair (id, pathgrid.mId + " has more points than expected"));
|
|
|
|
|
|
|
|
|
|
|
|
std::vector<Point> pointList(pathgrid.mPoints.size());
|
|
|
|
std::vector<CSMTools::Point> pointList(pathgrid.mPoints.size());
|
|
|
|
std::vector<int> duplList;
|
|
|
|
std::vector<int> duplList;
|
|
|
|
|
|
|
|
|
|
|
|
for (unsigned int i = 0; i < pathgrid.mEdges.size(); ++i)
|
|
|
|
for (unsigned int i = 0; i < pathgrid.mEdges.size(); ++i)
|
|
|
|