diff options
author | Treeki <treeki@gmail.com> | 2013-02-28 05:51:46 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-02-28 05:51:46 +0100 |
commit | f249d8d8dd3a820eef7fa88042b61b07ea4d0023 (patch) | |
tree | a72e2f53925ef3c6bb79305c6645843ff0bfedbd /src/koopatlas/mapdata.h | |
parent | 78c3ff8a9cf4e856c00799e95156e663f440a9d8 (diff) | |
download | kamek-f249d8d8dd3a820eef7fa88042b61b07ea4d0023.tar.gz kamek-f249d8d8dd3a820eef7fa88042b61b07ea4d0023.zip |
add reserved fields to KP node struct and getOtherNodeTo() method
Diffstat (limited to 'src/koopatlas/mapdata.h')
-rw-r--r-- | src/koopatlas/mapdata.h | 7 |
1 files changed, 6 insertions, 1 deletions
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]; |