diff options
| author | engineer124 <47598039+engineer124@users.noreply.github.com> | 2023-06-24 16:39:55 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-24 16:39:55 +1000 |
| commit | 19da43859e700a3f312133130e9d897b33e5f389 (patch) | |
| tree | 1a280d890444391b48931e1a0064769251106e89 /src/code | |
| parent | 5619dc5b5e3a1507feb7828ccfd70fe67268ece4 (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.c | 3 |
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; } |
