- Update writing of normal nodes for the new MapNodeEx structure.

SVN r3983 (trunk)
This commit is contained in:
Randy Heit 2012-12-08 02:30:50 +00:00
parent 732d9bc710
commit 8e785ba3b1

View file

@ -1116,8 +1116,13 @@ void FProcessor::WriteNodes2 (FWadWriter &out, const char *name, const MapNodeEx
for (i = 0; i < count; ++i) for (i = 0; i < count; ++i)
{ {
short *inodes = (short *)&zaNodes[i]; nodes[0] = LittleShort(zaNodes[i].x >> 16);
for (j = 0; j < 4+2*4; ++j) nodes[1] = LittleShort(zaNodes[i].y >> 16);
nodes[2] = LittleShort(zaNodes[i].dx >> 16);
nodes[3] = LittleShort(zaNodes[i].dy >> 16);
nodes += 4;
const short *inodes = (short *)&zaNodes[i].bbox[0][0];
for (j = 0; j < 2*4; ++j)
{ {
nodes[j] = LittleShort(inodes[j]); nodes[j] = LittleShort(inodes[j]);
} }