summaryrefslogtreecommitdiff
path: root/src/update_objects.c
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2025-12-13 17:28:44 -0700
committerGitHub <noreply@github.com>2025-12-13 17:28:44 -0700
commit7bc8d6f4be2bc22f7f4815d3c5eac691c4b92c0f (patch)
treeea7bed88faf5f3bb0788c698fd0252d3f624548a /src/update_objects.c
parent4e51b7d5b6a9b89deb5ef135deec0ee5f0087e7c (diff)
Refactor Field-of-view into the Camera Struct (#590)
* Fix finishline for toads turnpike in extra * Fixed trash bin in extra * Refactor fov * Update scene.json * Allow setting fog * impl fog save & load
Diffstat (limited to 'src/update_objects.c')
-rw-r--r--src/update_objects.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/update_objects.c b/src/update_objects.c
index 8d6c4cbcd..94867102f 100644
--- a/src/update_objects.c
+++ b/src/update_objects.c
@@ -2532,27 +2532,27 @@ void func_80078C70(s32 arg0) {
case 0: /* switch 1 */
sp1C = 0;
camera = camera1;
- D_8018D200 = gCameraFOV[0] + 40.0f;
+ D_8018D200 = camera->fieldOfView + 40.0f;
break;
case 1: /* switch 1 */
sp1C = 0;
camera = camera1;
- D_8018D200 = gCameraFOV[0] + 40.0f;
+ D_8018D200 = camera->fieldOfView + 40.0f;
break;
case 2: /* switch 1 */
camera = camera2;
sp1C = D_8018D1F0;
- D_8018D200 = gCameraFOV[1] + 40.0f;
+ D_8018D200 = camera->fieldOfView + 40.0f;
break;
case 3: /* switch 1 */
sp1C = 0;
camera = camera1;
- D_8018D200 = gCameraFOV[0] + 40.0f;
+ D_8018D200 = camera->fieldOfView + 40.0f;
break;
case 4: /* switch 1 */
camera = camera2;
sp1C = D_8018D1F0;
- D_8018D200 = gCameraFOV[1] + 40.0f;
+ D_8018D200 = camera->fieldOfView + 40.0f;
break;
}