mirror of
https://github.com/zeldaret/oot
synced 2026-06-08 04:17:06 -04:00
Decompile Path_GetByIndex
This commit is contained in:
+11
-1
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user