summaryrefslogtreecommitdiff
path: root/src/code/z_camera.c
diff options
context:
space:
mode:
authorengineer124 <47598039+engineer124@users.noreply.github.com>2023-06-02 14:39:39 +1000
committerGitHub <noreply@github.com>2023-06-02 14:39:39 +1000
commit4b25b4d8e655c5280fd42e5c99f3971ae9b5326b (patch)
tree166fa44044ca69bc57e2f64ccb899365ec81df28 /src/code/z_camera.c
parent0261dc0a5c99ab87fed760c0cb81d1f7c4f9dc3b (diff)
Misc Cleanup 2 (#1260)
* more misc cleanup * PR suggestions * more abs alt, csId * more cleanup, can't help it * fix incorrect sq * more fixes
Diffstat (limited to 'src/code/z_camera.c')
-rw-r--r--src/code/z_camera.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/code/z_camera.c b/src/code/z_camera.c
index 91a1d6b06..7fac2a2b2 100644
--- a/src/code/z_camera.c
+++ b/src/code/z_camera.c
@@ -6777,8 +6777,9 @@ s32 Camera_Special5(Camera* camera) {
spA4 = BINANG_SUB(focalActorPosRot->rot.y, sp6C.yaw);
sp74.r = roData->eyeDist;
rand = Rand_ZeroOne();
- sp74.yaw = BINANG_ROT180(focalActorPosRot->rot.y) +
- (s16)(spA4 < 0 ? -(s16)(0x1553 + (s16)(rand * 2730.0f)) : (s16)(0x1553 + (s16)(rand * 2730.0f)));
+ sp74.yaw =
+ BINANG_ROT180(focalActorPosRot->rot.y) +
+ (s16)((spA4 < 0) ? -(s16)(0x1553 + (s16)(rand * 2730.0f)) : (s16)(0x1553 + (s16)(rand * 2730.0f)));
sp74.pitch = roData->pitch;
OLib_AddVecGeoToVec3f(eyeNext, &spA8.pos, &sp74);
*eye = *eyeNext;