extend shot rendering to 32/9

This commit is contained in:
Sonic Dreamcaster 2024-12-04 02:45:10 -03:00
parent bbb96fec8d
commit 69dcab6b86

View File

@ -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) + 500.0f)) {
if (fabsf(sShotViewPos.y) < (fabsf(sShotViewPos.z * 0.5f) + 500.0f)) {
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)) {
isDrawn = true;
}
}