mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-08 07:20:16 +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
|
@ -141,7 +141,7 @@ void EnWallmas_SetupDrop(EnWallmas* this, GlobalContext* globalCtx) {
|
|||
Player* player = PLAYER;
|
||||
AnimationHeader* objSegChangeAnime = &D_0600299C;
|
||||
|
||||
SkelAnime_ChangeAnim(&this->skelAnime, objSegChangeAnime, 0.0f, 20.0f, (f32)SkelAnime_GetFrameCount(&D_0600299C), 2,
|
||||
SkelAnime_ChangeAnim(&this->skelAnime, objSegChangeAnime, 0.0f, 20.0f, SkelAnime_GetFrameCount(&D_0600299C), 2,
|
||||
0.0f);
|
||||
|
||||
this->unk_2c4 = player->actor.posRot.pos.y;
|
||||
|
@ -188,8 +188,8 @@ void EnWallmas_SetupReturnToCeiling(EnWallmas* this) {
|
|||
this->timer = 0;
|
||||
this->actor.speedXZ = 0.0f;
|
||||
|
||||
SkelAnime_ChangeAnim(&this->skelAnime, objSegChangeAnime, 3.0f, 0.0f,
|
||||
(f32)SkelAnime_GetFrameCount(objSegFrameCount), 2, -3.0f);
|
||||
SkelAnime_ChangeAnim(&this->skelAnime, objSegChangeAnime, 3.0f, 0.0f, SkelAnime_GetFrameCount(objSegFrameCount), 2,
|
||||
-3.0f);
|
||||
|
||||
this->actionFunc = EnWallmas_ReturnToCeiling;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue