From bbb96fec8d4b810aa092a0661d4795e3e8bae669 Mon Sep 17 00:00:00 2001 From: Sonic Dreamcaster Date: Mon, 2 Dec 2024 23:48:06 -0300 Subject: [PATCH] remove unnecessary code --- include/sf64context.h | 2 +- src/engine/fox_context.c | 8 ++++---- src/engine/fox_enmy2.c | 9 +++++++++ 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/include/sf64context.h b/include/sf64context.h index 600d5247..c152d538 100644 --- a/include/sf64context.h +++ b/include/sf64context.h @@ -319,7 +319,7 @@ extern Vec3f gTeamArrowsViewPos[10]; extern f32 D_ctx_80177F20[65]; extern f32 D_ctx_80178028[65]; extern f32 D_ctx_80178130[65]; -extern u8 D_ctx_80178238[65]; +// extern u8 D_ctx_80178238[65]; extern Player* gPlayer; extern f32* gStarOffsetsX; extern f32* gStarOffsetsY; diff --git a/src/engine/fox_context.c b/src/engine/fox_context.c index 7396c973..b5fa2454 100644 --- a/src/engine/fox_context.c +++ b/src/engine/fox_context.c @@ -365,10 +365,10 @@ s32 gVsMatchWon; bool gVsMatchStart; bool gChangeTo360; Vec3f gTeamArrowsViewPos[10]; -f32 D_ctx_80177F20[65]; // Seem to be an early implementation of RadarMark -f32 D_ctx_80178028[65]; -f32 D_ctx_80178130[65]; -u8 D_ctx_80178238[65]; +// f32 D_ctx_80177F20[65]; // Seem to be an early implementation of RadarMark +// f32 D_ctx_80178028[65]; +// f32 D_ctx_80178130[65]; +// u8 D_ctx_80178238[65]; Player* gPlayer; f32* gStarOffsetsX; f32* gStarOffsetsY; diff --git a/src/engine/fox_enmy2.c b/src/engine/fox_enmy2.c index 41d213e3..220f59bf 100644 --- a/src/engine/fox_enmy2.c +++ b/src/engine/fox_enmy2.c @@ -3791,12 +3791,15 @@ void ActorEvent_Update(ActorEvent* this) { break; } + // Unused early RadarMark implementation? + /* if (gLevelMode == LEVELMODE_ALL_RANGE) { D_ctx_80177F20[this->index + 1] = this->obj.pos.x; D_ctx_80178028[this->index + 1] = this->obj.pos.z; D_ctx_80178130[this->index + 1] = Math_ModF(this->rot_0F4.y, 360.0f) + 180.0f; D_ctx_80178238[this->index + 1] = 1; } + */ } UNK_TYPE D_800D129C[140] = { 0 }; // unused @@ -4241,11 +4244,14 @@ void func_enmy2_800763A4(Actor* this) { Object_Kill(&this->obj, this->sfxSource); Actor_Despawn(this); + // Unused early RadarMark implementation? + /* if (gLevelMode == LEVELMODE_ALL_RANGE) { D_ctx_80177F20[this->index + 1] = this->obj.pos.x; D_ctx_80178028[this->index + 1] = this->obj.pos.z; D_ctx_80178130[this->index + 1] = 1001.0f; } + */ return; } } else { @@ -4446,11 +4452,14 @@ void func_enmy2_800763A4(Actor* this) { } } + // Unused early RadarMark implementation? + /* if (gLevelMode == LEVELMODE_ALL_RANGE) { D_ctx_80177F20[this->index + 1] = this->obj.pos.x; D_ctx_80178028[this->index + 1] = this->obj.pos.z; D_ctx_80178130[this->index + 1] = this->rot_0F4.y + 180.0f; } + */ if (this->obj.id == OBJ_ACTOR_ALLRANGE) { ActorAllRange_SetShadowData(this);