From e58e00ef2aeb6c68bbd04880313dab6543a89d44 Mon Sep 17 00:00:00 2001 From: Nikolay Kasyanov Date: Mon, 5 Mar 2012 00:04:36 +0400 Subject: [PATCH] Feature #161 (In Progress) Load REC_PGRD records Point coords definitely not floats --- components/esm/loadpgrd.cpp | 2 +- components/esm/loadpgrd.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/esm/loadpgrd.cpp b/components/esm/loadpgrd.cpp index 2242599b3..7b76dd79f 100644 --- a/components/esm/loadpgrd.cpp +++ b/components/esm/loadpgrd.cpp @@ -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) diff --git a/components/esm/loadpgrd.hpp b/components/esm/loadpgrd.hpp index b8f97c661..6c7de919c 100644 --- a/components/esm/loadpgrd.hpp +++ b/components/esm/loadpgrd.hpp @@ -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