From d82a578622c25969f08548036a8b5ad40b42cb38 Mon Sep 17 00:00:00 2001 From: Sonic Dreamcaster Date: Sat, 23 Nov 2024 23:04:38 -0300 Subject: [PATCH] fix camera bug --- src/overlays/ovl_i5/fox_ma.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/overlays/ovl_i5/fox_ma.c b/src/overlays/ovl_i5/fox_ma.c index 22f09d18..d21f5fd9 100644 --- a/src/overlays/ovl_i5/fox_ma.c +++ b/src/overlays/ovl_i5/fox_ma.c @@ -6991,8 +6991,12 @@ void Macbeth_LevelComplete2(Player* player) { Math_SmoothStepToF(&gCsCamEyeX, player->pos.x - 2000.0f, 0.1f, D_ctx_80177A48[8], 0.0f); gCsCamEyeZ -= 1.0f; } + //! @BUG: The following condition is always true: - if ((gCsFrameCount >= 2120) || (gCsFrameCount < 2175)) { + // if ((gCsFrameCount >= 2120) || (gCsFrameCount < 2175)) { + + // LTODO: Fixed the bug, maybe have an option for it + if ((gCsFrameCount >= 2120) && (gCsFrameCount < 2175)) { Math_SmoothStepToF(&gCsCamAtY, player->pos.y + 70.0f, 0.1f, 8.0f, 0.0f); } if (gCsFrameCount == 2120) {