summaryrefslogtreecommitdiff
path: root/src/engine
diff options
context:
space:
mode:
authorSonic Dreamcaster <alejandro.asenjo88@gmail.com>2024-12-31 18:53:04 -0300
committerSonic Dreamcaster <alejandro.asenjo88@gmail.com>2024-12-31 18:53:04 -0300
commit2616808febfdce91200449b371dc91e1b3a5096a (patch)
tree7a932ce46a7f22b449afcc2bb628bf53965c9588 /src/engine
parentdcf7f8f5720688e0e8cb6c7417c3736fa50f3510 (diff)
Item/Effect Draw/Dispawn fix
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/fox_edisplay.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/engine/fox_edisplay.c b/src/engine/fox_edisplay.c
index 0fc6f88d..3d7b6542 100644
--- a/src/engine/fox_edisplay.c
+++ b/src/engine/fox_edisplay.c
@@ -1375,7 +1375,8 @@ void Effect_DrawAllRange(Effect* this) {
}
if ((dest.z < 0.0f) && (minZ < dest.z)) {
- if (fabsf(dest.x) < (fabsf(dest.z * 0.5f) + 500.0f)) {
+ // @port: Extend draw distance up to 32/9
+ if (fabsf(dest.x) < (fabsf(dest.z * /* 0.5f */ 1.5f) + 500.0f)) {
if (fabsf(dest.y) < (fabsf(dest.z * 0.5f) + 500.0f)) {
if (this->info.draw != NULL) {
Matrix_RotateY(gGfxMatrix, this->obj.rot.y * M_DTOR, MTXF_APPLY);
@@ -1406,13 +1407,10 @@ void Item_Draw(Item* this, s32 arg1) {
drawn = false;
- // @port draw no matter what
- goto render;
-
if ((dest.z < 0.0f) && (dest.z > -12000.0f)) {
- if (fabsf(dest.x) < (fabsf(dest.z * 0.5f) + 500.0f)) {
+ // @port: Extend draw distance up to 32/9
+ if (fabsf(dest.x) < (fabsf(dest.z * /* 0.5f */ 1.5f) + 500.0f)) {
if (fabsf(dest.y) < (fabsf(dest.z * 0.5f) + 500.0f)) {
- render:
if (this->info.draw != NULL) {
Matrix_RotateY(gGfxMatrix, this->obj.rot.y * M_DTOR, MTXF_APPLY);
Matrix_RotateX(gGfxMatrix, this->obj.rot.x * M_DTOR, MTXF_APPLY);