From f249d8d8dd3a820eef7fa88042b61b07ea4d0023 Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 28 Feb 2013 05:51:46 +0100 Subject: add reserved fields to KP node struct and getOtherNodeTo() method --- src/koopatlas/mapdata.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/koopatlas/mapdata.h b/src/koopatlas/mapdata.h index 9c1cd50..c501fda 100644 --- a/src/koopatlas/mapdata.h +++ b/src/koopatlas/mapdata.h @@ -68,7 +68,8 @@ struct dKPNode_s { }; dKPLayer_s *tileLayer, *doodadLayer; - NodeTypes type; + u8 reserved1, reserved2, reserved3; + u8 type; bool isNew; @@ -125,6 +126,10 @@ struct dKPPath_s { dKPNode_s *start, *end; dKPLayer_s *tileLayer, *doodadLayer; + dKPNode_s *getOtherNodeTo(dKPNode_s *n) { + return (n == start) ? end : start; + } + u8 isAvailable; // computed on-the-fly - default from Koopatlas is NOT or ALWAYS u8 isSecret; u8 _padding[2]; -- cgit v1.2.3