diff options
| author | mzxrules <mzxrules@gmail.com> | 2026-08-31 12:46:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-31 18:46:13 +0200 |
| commit | 176a0bc02ac59d5abb3cae9a676ca855c2501266 (patch) | |
| tree | c14345053f371646e9bc2a6c8a1ece3e9b74bee2 /src/code/z_camera.c | |
| parent | 6bc695cc14265a9b9803ce00c96e22e668bd5395 (diff) | |
Document pass on WaterBox code (#2695)
* Document pass on WaterBox code
* implement suggestions, missing comment
---------
Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
Diffstat (limited to 'src/code/z_camera.c')
| -rw-r--r-- | src/code/z_camera.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/code/z_camera.c b/src/code/z_camera.c index b94c5beda..fb8b1ccf1 100644 --- a/src/code/z_camera.c +++ b/src/code/z_camera.c @@ -685,8 +685,8 @@ s32 Camera_GetWaterBoxBgCamIndex(Camera* camera, f32* waterY) { playerPosRot = Actor_GetWorldPosShapeRot(&camera->player->actor); *waterY = playerPosRot.pos.y; - if (!WaterBox_GetSurface1(camera->play, &camera->play->colCtx, playerPosRot.pos.x, playerPosRot.pos.z, waterY, - &waterBox)) { + if (!BgCheck_GetWaterSurfaceAllHack(camera->play, &camera->play->colCtx, playerPosRot.pos.x, playerPosRot.pos.z, + waterY, &waterBox)) { // player's position is not within the x/z boundaries of a water box. *waterY = BGCHECK_Y_MIN; return -1; @@ -722,7 +722,8 @@ f32 Camera_GetWaterSurface(Camera* camera, Vec3f* chkPos, s32* lightIndex) { playerPosRot = Actor_GetWorldPosShapeRot(&camera->player->actor); waterY = playerPosRot.pos.y; - if (!WaterBox_GetSurface1(camera->play, &camera->play->colCtx, chkPos->x, chkPos->z, &waterY, &waterBox)) { + if (!BgCheck_GetWaterSurfaceAllHack(camera->play, &camera->play->colCtx, chkPos->x, chkPos->z, &waterY, + &waterBox)) { // chkPos is not within the x/z boundaries of a water box. return BGCHECK_Y_MIN; } |
