mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-07 06:40:15 +00:00
Clean up SkelAnime_GetFrameCount usage (#245)
* fix colliderinit typo * clean up SkelAnime_GetFrameCount usage * line breaks
This commit is contained in:
parent
4fb01c6b21
commit
c589285826
10 changed files with 60 additions and 40 deletions
|
@ -137,10 +137,10 @@ void EnSb_SetupWaitOpen(EnSb* this) {
|
|||
}
|
||||
|
||||
void EnSb_SetupLunge(EnSb* this) {
|
||||
f32 frames = SkelAnime_GetFrameCount(&D_06000124.genericHeader);
|
||||
f32 frameCount = SkelAnime_GetFrameCount(&D_06000124.genericHeader);
|
||||
f32 playbackSpeed = this->actor.waterY > 0.0f ? 1.0f : 0.0f;
|
||||
|
||||
SkelAnime_ChangeAnim(&this->skelAnime, &D_06000124, playbackSpeed, 0.0f, frames, 2, 0);
|
||||
SkelAnime_ChangeAnim(&this->skelAnime, &D_06000124, playbackSpeed, 0.0f, frameCount, 2, 0);
|
||||
this->behavior = SHELLBLADE_LUNGE;
|
||||
this->actionFunc = EnSb_Lunge;
|
||||
Audio_PlayActorSound2(&this->actor, NA_SE_EN_SHELL_MOUTH);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue