summaryrefslogtreecommitdiff
path: root/src/koopatlas/mapdata.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-02-28 05:51:46 +0100
committerTreeki <treeki@gmail.com>2013-02-28 05:51:46 +0100
commitf249d8d8dd3a820eef7fa88042b61b07ea4d0023 (patch)
treea72e2f53925ef3c6bb79305c6645843ff0bfedbd /src/koopatlas/mapdata.h
parent78c3ff8a9cf4e856c00799e95156e663f440a9d8 (diff)
downloadkamek-f249d8d8dd3a820eef7fa88042b61b07ea4d0023.tar.gz
kamek-f249d8d8dd3a820eef7fa88042b61b07ea4d0023.zip
add reserved fields to KP node struct and getOtherNodeTo() method
Diffstat (limited to '')
-rw-r--r--src/koopatlas/mapdata.h7
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];