From 8e785ba3b1d23219c636f1a8b300dbf6040f1962 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 8 Dec 2012 02:30:50 +0000 Subject: [PATCH] - Update writing of normal nodes for the new MapNodeEx structure. SVN r3983 (trunk) --- processor.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/processor.cpp b/processor.cpp index 5c75359..f663058 100644 --- a/processor.cpp +++ b/processor.cpp @@ -1116,8 +1116,13 @@ void FProcessor::WriteNodes2 (FWadWriter &out, const char *name, const MapNodeEx for (i = 0; i < count; ++i) { - short *inodes = (short *)&zaNodes[i]; - for (j = 0; j < 4+2*4; ++j) + nodes[0] = LittleShort(zaNodes[i].x >> 16); + 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]); }