From 5ede801584553ddb1e5a5316236cdf718d33bab5 Mon Sep 17 00:00:00 2001 From: Sonic Dreamcaster Date: Wed, 4 Dec 2024 14:13:13 -0300 Subject: [PATCH] playershot widescreen fix --- src/engine/fox_beam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/fox_beam.c b/src/engine/fox_beam.c index 5ce18251..b95015e6 100644 --- a/src/engine/fox_beam.c +++ b/src/engine/fox_beam.c @@ -1237,8 +1237,8 @@ void PlayerShot_DrawShot(PlayerShot* shot) { Matrix_MultVec3f(gGfxMatrix, &sp11C, &sShotViewPos); if ((sShotViewPos.z < 0.0f) && (sShotViewPos.z > -10000.0f)) { var_fv1 = fabsf(sShotViewPos.x); // probably fake. The use of temps was likely different - if (var_fv1 < (fabsf(sShotViewPos.z * /* 0.5f */ 1.0f) + 500.0f)) { - if (fabsf(sShotViewPos.y) < (fabsf(sShotViewPos.z * /* 0.5f */ 1.0f) + 500.0f)) { + if (var_fv1 < (fabsf(sShotViewPos.z * /* 0.5f */ 1.5f) + 500.0f)) { + if (fabsf(sShotViewPos.y) < (fabsf(sShotViewPos.z * 0.5f) + 500.0f)) { isDrawn = true; } }