summaryrefslogtreecommitdiff
path: root/src/code
diff options
context:
space:
mode:
authorengineer124 <47598039+engineer124@users.noreply.github.com>2023-06-24 16:39:55 +1000
committerGitHub <noreply@github.com>2023-06-24 16:39:55 +1000
commit19da43859e700a3f312133130e9d897b33e5f389 (patch)
tree1a280d890444391b48931e1a0064769251106e89 /src/code
parent5619dc5b5e3a1507feb7828ccfd70fe67268ece4 (diff)
Document Player's bgcheck routine (#1275)
* Thanks Fig * cleanup * more docs * cleanup * oops * cleanup comment * add comment to SurfaceType_GetSceneExitIndex * fix bss
Diffstat (limited to 'src/code')
-rw-r--r--src/code/z_bgcheck.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/code/z_bgcheck.c b/src/code/z_bgcheck.c
index a263d4393..f63ff6b01 100644
--- a/src/code/z_bgcheck.c
+++ b/src/code/z_bgcheck.c
@@ -4200,6 +4200,9 @@ Vec3s* BgCheck_GetBgCamFuncData(CollisionContext* colCtx, CollisionPoly* poly, s
return BgCheck_GetBgCamFuncDataImpl(colCtx, SurfaceType_GetBgCamIndex(colCtx, poly, bgId), bgId);
}
+/**
+ * Returns one above the value indexed by `play->setupExitList[]`
+ */
u32 SurfaceType_GetSceneExitIndex(CollisionContext* colCtx, CollisionPoly* poly, s32 bgId) {
return SurfaceType_GetData(colCtx, poly, bgId, 0) >> 8 & 0x1F;
}