disabled debug output

pull/21/head
Nikolay Kasyanov 13 years ago
parent 540e4f77a7
commit 08db70e137

@ -18,7 +18,7 @@ void PathGrid::load(ESMReader &esm)
{ {
esm.getHNT(data, "DATA", 12); esm.getHNT(data, "DATA", 12);
cell = esm.getHNString("NAME"); cell = esm.getHNString("NAME");
std::cout << "loading PGRD for " << cell << " x=" << data.x << " y=" << data.y << std::endl; //std::cout << "loading PGRD for " << cell << " x=" << data.x << " y=" << data.y << std::endl;
// Remember this file position // Remember this file position
context = esm.getContext(); context = esm.getContext();
@ -28,22 +28,22 @@ void PathGrid::load(ESMReader &esm)
{ {
esm.getSubHeader(); esm.getSubHeader();
int size = esm.getSubSize(); int size = esm.getSubSize();
std::cout << "PGRP size is " << size << std::endl; //std::cout << "PGRP size is " << size << std::endl;
if (size != 16 * data.s2) if (size != 16 * data.s2)
esm.fail("Path grid table size mismatch"); esm.fail("Path grid table size mismatch");
else else
{ {
pointCount = data.s2; pointCount = data.s2;
std::cout << "Path grid points count is " << data.s2 << std::endl; //std::cout << "Path grid points count is " << data.s2 << std::endl;
points = new Point[pointCount]; points = new Point[pointCount];
esm.getExact(points, size); esm.getExact(points, size);
for (int i = 0; i < pointCount; ++i) // for (int i = 0; i < pointCount; ++i)
{ // {
std::cout << i << "'s point: " << points[i].x; // std::cout << i << "'s point: " << points[i].x;
std::cout << " " << points[i].y; // std::cout << " " << points[i].y;
std::cout << " " << points[i].z; // std::cout << " " << points[i].z;
std::cout << std::endl; // std::cout << std::endl;
} // }
} }
} }
@ -54,23 +54,22 @@ void PathGrid::load(ESMReader &esm)
{ {
esm.getSubHeader(); esm.getSubHeader();
int size = esm.getSubSize(); int size = esm.getSubSize();
std::cout << "PGRC size is " << size << std::endl; //std::cout << "PGRC size is " << size << std::endl;
if (size % 4 != 0) if (size % 4 != 0)
esm.fail("PGRC size not a multiple of 4"); esm.fail("PGRC size not a multiple of 4");
else else
{ {
edgeCount = size / sizeof(Edge); edgeCount = size / sizeof(Edge);
std::cout << "Path grid edge count is " << edgeCount << std::endl; //std::cout << "Path grid edge count 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)
{ // {
std::cout << i << "'s edge: " << edges[i].v0 << " " // std::cout << i << "'s edge: " << edges[i].v0 << " "
<< edges[i].v1 << std::endl; // << edges[i].v1 << std::endl;
} // }
} }
} }
std::cin.ignore(1);
} }
} }

Loading…
Cancel
Save