summaryrefslogtreecommitdiff
path: root/src/code
diff options
context:
space:
mode:
Diffstat (limited to 'src/code')
-rw-r--r--src/code/z_path.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/code/z_path.c b/src/code/z_path.c
index 7b54d58c2..011421bd6 100644
--- a/src/code/z_path.c
+++ b/src/code/z_path.c
@@ -1,7 +1,17 @@
#include <ultra64.h>
#include <global.h>
-#pragma GLOBAL_ASM("asm/non_matchings/code/z_path/Path_GetByIndex.s")
+Path* Path_GetByIndex(GlobalContext* globalCtx, s16 index, s16 max) {
+ Path* path;
+
+ if (index != max) {
+ path = &globalCtx->setupPathList[index];
+ } else {
+ path = NULL;
+ }
+
+ return path;
+}
#pragma GLOBAL_ASM("asm/non_matchings/code/z_path/Path_OrientAndGetDistSq.s")