summaryrefslogtreecommitdiff
path: root/src/overlays/actors/ovl_En_Test3/z_en_test3.c
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2023-11-14 08:46:22 -0300
committerGitHub <noreply@github.com>2023-11-14 22:46:22 +1100
commit3d150f3e1d84259b05f2831be35fa6fd38e43232 (patch)
treee737c09137a04cdac7b15d0e190d6ca3b3fd0503 /src/overlays/actors/ovl_En_Test3/z_en_test3.c
parent60ddc5891e1cdef2e32f695c96e60344d7a51c26 (diff)
Misc fixes 1 (#1491)
* Some low-hanging UB * document bug on z_file_nameset_NES.c * ALIGNED on audio data * document bug on decode * document bugs on Message_Decode * Format * More ALIGNED * Put the ALIGNED macro at the right like the other uses in the repo * review * fix Message Decode (cherry picked from commit abfbc7068816756f7ea3fa4a36ee0fe664c54c72) Co-authored-by: engineer124 <engineer124engineer124@gmail.com> * remove comments * Update src/overlays/gamestates/ovl_file_choose/z_file_choose_NES.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * format --------- Co-authored-by: engineer124 <engineer124engineer124@gmail.com> Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
Diffstat (limited to 'src/overlays/actors/ovl_En_Test3/z_en_test3.c')
-rw-r--r--src/overlays/actors/ovl_En_Test3/z_en_test3.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/overlays/actors/ovl_En_Test3/z_en_test3.c b/src/overlays/actors/ovl_En_Test3/z_en_test3.c
index 4fa177013..5386d415e 100644
--- a/src/overlays/actors/ovl_En_Test3/z_en_test3.c
+++ b/src/overlays/actors/ovl_En_Test3/z_en_test3.c
@@ -274,7 +274,7 @@ s32 D_80A41D5C;
s32 D_80A41D60;
s32 D_80A41D64;
s32 D_80A41D68;
-Vec3f* D_80A41D6C;
+Vec3f* sKafeiCurBodyPartPos;
s32 func_80A3E7E0(EnTest3* this, EnTest3ActionFunc actionFunc) {
if (actionFunc == this->unk_D94) {
@@ -1098,7 +1098,7 @@ s32 EnTest3_OverrideLimbDraw(PlayState* play, s32 limbIndex, Gfx** dList, Vec3f*
EnTest3* this = THIS;
if (limbIndex == KAFEI_LIMB_ROOT) {
- D_80A41D6C = &this->player.bodyPartsPos[-1];
+ sKafeiCurBodyPartPos = &this->player.bodyPartsPos[0] - 1;
if (!(this->player.skelAnime.moveFlags & ANIM_FLAG_4) || (this->player.skelAnime.moveFlags & ANIM_FLAG_1)) {
pos->x *= this->player.ageProperties->unk_08;
pos->z *= this->player.ageProperties->unk_08;
@@ -1118,7 +1118,7 @@ s32 EnTest3_OverrideLimbDraw(PlayState* play, s32 limbIndex, Gfx** dList, Vec3f*
}
} else {
if (*dList != NULL) {
- D_80A41D6C++;
+ sKafeiCurBodyPartPos++;
}
if (D_80A418C8) {
*dList = NULL;
@@ -1153,13 +1153,13 @@ void EnTest3_PostLimbDraw(PlayState* play, s32 limbIndex, Gfx** dList1, Gfx** dL
EnTest3* this = THIS;
if (*dList2 != NULL) {
- Matrix_MultZero(D_80A41D6C);
+ Matrix_MultZero(sKafeiCurBodyPartPos);
}
if (limbIndex == KAFEI_LIMB_LEFT_HAND) {
MtxF curMtxF;
Actor* leftHandActor;
- Math_Vec3f_Copy(&this->player.leftHandWorld.pos, D_80A41D6C);
+ Math_Vec3f_Copy(&this->player.leftHandWorld.pos, sKafeiCurBodyPartPos);
if (*dList1 != NULL) {
func_80128640(play, &this->player, *dList1);
if (this->player.stateFlags3 & PLAYER_STATE3_20000000) {