forked from mirror/openmw-tes3mp
Feature #161 (In Progress) Load REC_PGRD records
Point coords definitely not floats
This commit is contained in:
parent
40e07bbd2a
commit
e58e00ef2a
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ void PathGrid::load(ESMReader &esm)
|
||||||
{
|
{
|
||||||
edgeCount = size / sizeof(Edge);
|
edgeCount = size / sizeof(Edge);
|
||||||
std::cout << "Path grid edge count for cell " << data.x
|
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];
|
edges = new Edge[edgeCount];
|
||||||
esm.getExact(edges, size);
|
esm.getExact(edges, size);
|
||||||
for (int i = 0; i < edgeCount; ++i)
|
for (int i = 0; i < edgeCount; ++i)
|
||||||
|
|
|
@ -22,7 +22,7 @@ struct PathGrid
|
||||||
#pragma pack(push, 1)
|
#pragma pack(push, 1)
|
||||||
struct Point // path grid point
|
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
|
int unknown; // Possibly flag for coloring/user-placed vs auto-generated
|
||||||
}; // 16 bytes
|
}; // 16 bytes
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue