Skip to content

Commit

Permalink
Fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
louist103 committed May 11, 2024
1 parent 90dd127 commit 84e1a54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mm/src/overlays/actors/ovl_En_Fsn/z_en_fsn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1480,8 +1480,12 @@ void EnFsn_Init(Actor* thisx, PlayState* play) {
EnFsn* this = THIS;

ActorShape_Init(&this->actor.shape, 0.0f, ActorShadow_DrawCircle, 20.0f);

// #region 2S2H [Port] ENFSN_LIMB_MAX originally had a +1 because the game incorrectly thought the skel had 18 limbs when it
// only has 17. We also need to patch the count in skelAnime because it is reading the wrong number from the skeleton header.
SkelAnime_InitFlex(play, &this->skelAnime, &gFsnSkel, &gFsnIdleAnim, this->jointTable, this->morphTable,
ENFSN_LIMB_MAX);
this->skelAnime.limbCount = ENFSN_LIMB_MAX;

if (ENFSN_IS_SHOP(&this->actor)) {
this->actor.shape.rot.y = BINANG_ROT180(this->actor.shape.rot.y);
Expand Down

0 comments on commit 84e1a54

Please sign in to comment.