From d824f4803972bde2d22fbf5714fa2317701f7687 Mon Sep 17 00:00:00 2001 From: Sirius902 <3645979-Sirius902@users.noreply.gitlab.com> Date: Mon, 5 Oct 2020 17:48:38 -0700 Subject: [PATCH] Slightly better diff --- src/overlays/actors/ovl_En_Ik/z_en_ik.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/overlays/actors/ovl_En_Ik/z_en_ik.c b/src/overlays/actors/ovl_En_Ik/z_en_ik.c index 5a6f359878..9a469c2347 100644 --- a/src/overlays/actors/ovl_En_Ik/z_en_ik.c +++ b/src/overlays/actors/ovl_En_Ik/z_en_ik.c @@ -282,7 +282,6 @@ void func_80A74BA4(EnIk* this, GlobalContext* globalCtx) { s16 yawDiff; s16 sp30; s16 sp2E; - s16 temp_v1_3; s16 phi_t0; s32 phi_a1; s16 phi_a3; @@ -332,8 +331,7 @@ void func_80A74BA4(EnIk* this, GlobalContext* globalCtx) { } func_80A745E4(this, globalCtx); SkelAnime_FrameUpdateMatrix(&this->skelAnime); - temp_v1_3 = this->skelAnime.animCurrentFrame; - if ((sp30 == temp_v1_3) || (sp2E == temp_v1_3)) { + if ((sp30 == (s16)this->skelAnime.animCurrentFrame) || (sp2E == (s16)this->skelAnime.animCurrentFrame)) { Audio_PlayActorSound2(&this->actor, NA_SE_EN_IRONNACK_WALK); } }