Feature #161 (In Progress) Load REC_PGRD records

Point coords definitely not floats
This commit is contained in:
Nikolay Kasyanov 2012-03-05 00:04:36 +04:00
parent 40e07bbd2a
commit e58e00ef2a
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ void PathGrid::load(ESMReader &esm)
{
edgeCount = size / sizeof(Edge);
std::cout << "Path grid edge count for cell " << data.x
<< " " << data.y << " is " << size << std::endl;
<< " " << data.y << " is " << edgeCount << std::endl;
edges = new Edge[edgeCount];
esm.getExact(edges, size);
for (int i = 0; i < edgeCount; ++i)

View file

@ -22,7 +22,7 @@ struct PathGrid
#pragma pack(push, 1)
struct Point // path grid point
{
float x, y, z; // Location of point
int x, y, z; // Location of point
int unknown; // Possibly flag for coloring/user-placed vs auto-generated
}; // 16 bytes