~openmw/openmw/openmw-packaging2

« back to all changes in this revision

Viewing changes to apps/opencs/model/tools/pathgridcheck.cpp

  • Committer: Scott Howard
  • Date: 2016-09-15 20:56:29 UTC
  • Revision ID: showard@debian.org-20160915205629-3tvfxe47zrb41a91
Cron update. Git hash: 37278b5

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
 
71
71
    for (unsigned int i = 0; i < pathgrid.mPoints.size(); ++i)
72
72
    {
73
 
        // check the connection number for each point matches the edge connections
74
 
        if (pathgrid.mPoints[i].mConnectionNum > pointList[i].mConnectionNum)
75
 
        {
76
 
            std::ostringstream ss;
77
 
            ss << " has has less edges than expected for point " << i;
78
 
            messages.add (id, pathgrid.mId + ss.str(), "", CSMDoc::Message::Severity_Error);
79
 
        }
80
 
        else if (pathgrid.mPoints[i].mConnectionNum < pointList[i].mConnectionNum)
81
 
        {
82
 
            std::ostringstream ss;
83
 
            ss << " has has more edges than expected for point " << i;
84
 
            messages.add (id, pathgrid.mId + ss.str(), "", CSMDoc::Message::Severity_Error);
85
 
        }
86
 
 
87
73
        // check that edges are bidirectional
88
74
        bool foundReverse = false;
89
75
        for (unsigned int j = 0; j < pointList[i].mOtherIndex.size(); ++j)