From e978351e84b9004ba88b56147653df98887aa77c Mon Sep 17 00:00:00 2001 From: Roman971 <32455037+Roman971@users.noreply.github.com> Date: Tue, 7 Jun 2022 06:42:03 +0200 Subject: [PATCH] Cleanup undefined syms and mark bug in z_en_a_keep.c (#1262) --- src/code/z_en_a_keep.c | 21 +++++++-------------- undefined_syms.txt | 3 --- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/src/code/z_en_a_keep.c b/src/code/z_en_a_keep.c index e7243473b3..3b20cec82b 100644 --- a/src/code/z_en_a_keep.c +++ b/src/code/z_en_a_keep.c @@ -1,6 +1,7 @@ #include "global.h" #include "vt.h" #include "assets/objects/gameplay_keep/gameplay_keep.h" +#include "assets/objects/object_d_hsblock/object_d_hsblock.h" #define FLAGS ACTOR_FLAG_4 @@ -52,7 +53,9 @@ static ColliderCylinderInit sCylinderInit = { { 25, 60, 0, { 0, 0, 0 } }, }; -extern CollisionHeader D_06000730; // gHookshotTargetCol ? +//! @bug gHookshotPostCol and gHookshotPostDL are referenced below for type A_OBJ_UNKNOWN_6 but they aren't available +//! since object_d_hsblock isn't a dependency of this actor. +//! This doesn't cause issues in the base game because A_OBJ_UNKNOWN_6 is never used. static CollisionHeader* sColHeaders[] = { &gLargerCubeCol, // A_OBJ_GRASS_CLUMP, A_OBJ_TREE_STUMP @@ -60,22 +63,12 @@ static CollisionHeader* sColHeaders[] = { &gSmallerFlatBlockCol, // unused &gLargerFlatBlockCol, // A_OBJ_BLOCK_SMALL_ROT, A_OBJ_BLOCK_LARGE_ROT &gSmallerCubeCol, // unused - &D_06000730, // A_OBJ_UNKNOWN_6 + &gHookshotPostCol, // A_OBJ_UNKNOWN_6 }; static Gfx* sDLists[] = { - gFlatBlockDL, - gFlatBlockDL, - gFlatBlockDL, - gFlatRotBlockDL, - gFlatRotBlockDL, - gSmallCubeDL, - /* gHookshotPostDL ? */ 0x06000210, - gGrassBladesDL, - gTreeStumpDL, - gSignRectangularDL, - gSignDirectionalDL, - gBoulderFragmentsDL, + gFlatBlockDL, gFlatBlockDL, gFlatBlockDL, gFlatRotBlockDL, gFlatRotBlockDL, gSmallCubeDL, + gHookshotPostDL, gGrassBladesDL, gTreeStumpDL, gSignRectangularDL, gSignDirectionalDL, gBoulderFragmentsDL, }; void EnAObj_SetupAction(EnAObj* this, EnAObjActionFunc actionFunc) { diff --git a/undefined_syms.txt b/undefined_syms.txt index 62c6cbaa60..deba8affd0 100644 --- a/undefined_syms.txt +++ b/undefined_syms.txt @@ -7,8 +7,5 @@ D_0E000000 = 0x0E000000; // z_vismono D_0F000000 = 0x0F000000; -// z_en_a_keep or en_a_obj -D_06000730 = 0x06000730; - // z_bg_mjin D_06000000 = 0x06000000;