diff options
author | Colin Noga <Tempus@chronometry.ca> | 2012-02-27 12:34:56 -0600 |
---|---|---|
committer | Colin Noga <Tempus@chronometry.ca> | 2012-02-27 12:34:56 -0600 |
commit | d6924bebc44bf904ec3e9ed8126614f67a04df88 (patch) | |
tree | 159e94b87aa174b4bc86f565db975adfab729efe /src/koopatlas/mapdata.h | |
parent | 12e4a674748be41a0105f6a7b3b8132d0a3a65b4 (diff) | |
parent | 21d7e41b006b88aa79821610661fefc8fe14b7ca (diff) | |
download | kamek-d6924bebc44bf904ec3e9ed8126614f67a04df88.tar.gz kamek-d6924bebc44bf904ec3e9ed8126614f67a04df88.zip |
Merge branch 'level-select' of ssh://treeki.rustedlogic.net:30000/Kamek into level-select
Diffstat (limited to '')
-rw-r--r-- | src/koopatlas/mapdata.h | 9 |
1 files changed, 8 insertions, 1 deletions
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); }; |