From 166fc64dbea79897cc702770ca33a8e1c57a124f Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 27 Sep 2012 06:23:02 +0200 Subject: final fixes to exporter --- src/exporter.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/exporter.py b/src/exporter.py index e2ee9ae..ce87a12 100644 --- a/src/exporter.py +++ b/src/exporter.py @@ -362,16 +362,15 @@ class KPMapExporter: # i i i b b b b: isNew, Extra pointer, dest map, map ID, foreign ID, transition, padding data += struct.pack('>iiibbbb', 0, 0, 0, node.mapID, node.foreignID, node.transition, 0) - elif node.worldDefID: - data += u32.pack(4) # node type - - # b b b b: world def ID, padding - data += struct.pack('>bbbb', node.worldDefID, 0, 0, 0) - else: data += u32.pack(1) # node type data += zero32 # isNew data += zero32 # Extra pointer + + elif node.worldDefID: + # i i i b b b b: node type, isNew, Extra pointer, world def ID, padding + data += struct.pack('>iiibbbb', 4, 0, 0, node.worldDefID, 0, 0, 0) + else: data += zero32 # node type data += zero32 # isNew -- cgit v1.2.3