From d3d5898f17ba1177e6f5098a64fa55e5f6279757 Mon Sep 17 00:00:00 2001 From: Dragorn421 Date: Sun, 8 Jun 2025 01:37:46 +0200 Subject: Update docs/Documenting.md (#1265) * Update docs/Documenting.md * fix --- src/code/z_actor.c | 2 +- src/code/z_camera.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/code') diff --git a/src/code/z_actor.c b/src/code/z_actor.c index 5a0fe9b1c..dfec9188f 100644 --- a/src/code/z_actor.c +++ b/src/code/z_actor.c @@ -3854,7 +3854,7 @@ Actor* Actor_GetProjectileActor(PlayState* play, Actor* refActor, f32 radius) { actor = actor->next; } else { //! @bug The projectile actor gets unsafely casted to a hookshot to check its timer, even though - // it can also be an arrow. + //! it can also be an arrow. // Luckily, the field at the same offset in the arrow actor is the x component of a vector // which will rarely ever be 0. So it's very unlikely for this bug to cause an issue. if ((Math_Vec3f_DistXYZ(&refActor->world.pos, &actor->world.pos) > radius) || diff --git a/src/code/z_camera.c b/src/code/z_camera.c index 36c3f0b15..ce1fa53c0 100644 --- a/src/code/z_camera.c +++ b/src/code/z_camera.c @@ -7750,7 +7750,7 @@ void Camera_PrintSettings(Camera* camera) { sp50[i++] = '-'; } - //! @bug: this code was clearly meaning to print `abs(camera->bgCamIndex)` as a + //! @bug this code was clearly meaning to print `abs(camera->bgCamIndex)` as a //! one-or-two-digit number, instead of `i`. // "sp50[i++] = ..." matches here, but is undefined behavior due to conflicting // reads/writes between sequence points, triggering warnings. Work around by @@ -8624,7 +8624,7 @@ s32 Camera_RequestBgCam(Camera* camera, s32 requestedBgCamIndex) { Camera_CopyDataToRegs(camera, camera->mode); } else if (settingChangeSuccessful < -1) { //! @bug: `settingChangeSuccessful` is a bool and is likely checking the wrong value. This can never pass. - // The actual return of Camera_RequestSettingImpl or bgCamIndex would make more sense. + //! The actual return of Camera_RequestSettingImpl or bgCamIndex would make more sense. PRINTF(VT_COL(RED, WHITE) "camera: error: illegal camera ID (%d) !! (%d|%d|%d)\n" VT_RST, requestedBgCamIndex, camera->camId, BGCHECK_SCENE, requestedCamSetting); } -- cgit v1.2.3