From 21d7e41b006b88aa79821610661fefc8fe14b7ca Mon Sep 17 00:00:00 2001 From: Treeki Date: Mon, 27 Feb 2012 18:54:32 +0100 Subject: switching between multiple maps --- src/koopatlas/mapdata.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/koopatlas/mapdata.h') diff --git a/src/koopatlas/mapdata.h b/src/koopatlas/mapdata.h index e75925d..913c933 100644 --- a/src/koopatlas/mapdata.h +++ b/src/koopatlas/mapdata.h @@ -67,10 +67,17 @@ struct dKPNode_s { NodeTypes type; union { struct { u8 levelNumber[2]; }; - struct { char *destMap; u8 thisID, foreignID, transition; }; + struct { const char *destMap; u8 thisID, foreignID, transition; }; }; + dKPPath_s *getAnyExit() { + for (int i = 0; i < 4; i++) + if (exits[i]) + return exits[i]; + return 0; + } + dKPPath_s *getOppositeExitTo(dKPPath_s *path); }; -- cgit v1.2.3