mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-07 14:50:15 +00:00
Merge pull request #35 from JoshDuMan/nonmatching
Match z_en_bird.c's last function.
This commit is contained in:
commit
80b0f9b5fe
3 changed files with 6 additions and 62 deletions
|
@ -86,19 +86,15 @@ void EnBird_Init(EnBird* this, GlobalContext* globalCtx) {
|
|||
void EnBird_Destroy(EnBird* this, GlobalContext* globalCtx) {
|
||||
}
|
||||
|
||||
#ifdef NON_MATCHING
|
||||
// D_0600006C address is reused when it shouldn't be
|
||||
// also minor ordering differences
|
||||
void func_809C1CAC(EnBird* this, s16 params) {
|
||||
f32 frameCount = SkelAnime_GetFrameCount(&D_0600006C);
|
||||
f32 playbackSpeed = this->unk_19C ? 0.0f : 1.0f;
|
||||
u32* anim = &D_0600006C;
|
||||
|
||||
this->unk_198 = Math_Rand_S16Offset(5, 0x23);
|
||||
SkelAnime_ChangeAnimation(&this->skelAnime, &D_0600006C, playbackSpeed, 0.0f, frameCount, 0, 0.0f);
|
||||
SkelAnime_ChangeAnimation(&this->skelAnime, anim, playbackSpeed, 0.0f, frameCount, 0, 0.0f);
|
||||
EnBird_SetNewUpdate(this, func_809C1D60);
|
||||
}
|
||||
#else
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Bird/func_809C1CAC.s")
|
||||
#endif
|
||||
|
||||
void func_809C1D60(EnBird* this, GlobalContext* globalCtx) {
|
||||
f32 fVar2 = sinf(this->unk_1B4);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue