1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-02 22:14:33 +00:00

Name Actor_PlaySfx and Player_PlaySfx (#1469)

* name two main actor sfx functions

* adjust comments

* fix double s in player

* fix commas
This commit is contained in:
engineer124 2022-12-18 23:18:21 -05:00 committed by GitHub
parent f181c2f10e
commit be22b836f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
213 changed files with 1424 additions and 1414 deletions

View file

@ -169,7 +169,7 @@ void EnInsect_UpdateCrawlSfx(EnInsect* this) {
return;
}
Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MUSI_WALK);
Actor_PlaySfx(&this->actor, NA_SE_EN_MUSI_WALK);
this->crawlSoundDelay = 3.0f / CLAMP_MIN(this->skelAnime.playSpeed, 0.1f);
if (this->crawlSoundDelay < 2) {
@ -413,7 +413,7 @@ void EnInsect_SetupDig(EnInsect* this) {
this->actionTimer = 60;
EnInsect_SetCrawlAnim(this);
this->skelAnime.playSpeed = 1.9f;
Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MUSI_SINK);
Actor_PlaySfx(&this->actor, NA_SE_EN_MUSI_SINK);
Math_Vec3f_Copy(&this->actor.home.pos, &this->actor.world.pos);
this->actionFunc = EnInsect_Dig;
this->insectFlags &= ~INSECT_FLAG_CRAWLING;
@ -664,7 +664,7 @@ void EnInsect_Dropped(EnInsect* this, PlayState* play) {
SkelAnime_Update(&this->skelAnime);
if (!(this->insectFlags & INSECT_FLAG_DROPPED_HAS_LANDED) && (this->insectFlags & INSECT_FLAG_0) &&
(this->actor.bgCheckFlags & BGCHECKFLAG_GROUND)) {
Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MUSI_LAND);
Actor_PlaySfx(&this->actor, NA_SE_EN_MUSI_LAND);
this->insectFlags |= INSECT_FLAG_DROPPED_HAS_LANDED;
}