mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-22 06:52:03 +00:00
Fix a number of warnings when compiling with GCC (#1239)
* Silence a number of GCC warnings * Remove * Suggested changes * Format * Fix comment in en_go2
This commit is contained in:
parent
5015af4c57
commit
451b24f79b
71 changed files with 298 additions and 86 deletions
|
@ -212,6 +212,7 @@ void EnDh_Wait(EnDh* this, PlayState* play) {
|
|||
this->actionState++;
|
||||
this->drawDirtWave++;
|
||||
Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEADHAND_HIDE);
|
||||
FALLTHROUGH;
|
||||
case 1:
|
||||
this->dirtWavePhase += 0x3A7;
|
||||
Math_SmoothStepToF(&this->dirtWaveSpread, 300.0f, 1.0f, 5.0f, 0.0f);
|
||||
|
@ -311,6 +312,7 @@ void EnDh_Attack(EnDh* this, PlayState* play) {
|
|||
Animation_PlayOnce(&this->skelAnime, &object_dh_Anim_001A3C);
|
||||
this->actionState++;
|
||||
Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEADHAND_BITE);
|
||||
FALLTHROUGH;
|
||||
case 0:
|
||||
Math_SmoothStepToS(&this->actor.shape.rot.y, this->actor.yawTowardsPlayer, 1, 0x5DC, 0);
|
||||
break;
|
||||
|
@ -376,6 +378,7 @@ void EnDh_Burrow(EnDh* this, PlayState* play) {
|
|||
AT_ON | AT_TYPE_ENEMY; // also TOUCH_ON | TOUCH_SFX_WOOD
|
||||
this->collider1.info.toucher.dmgFlags = 0xFFCFFFFF;
|
||||
this->collider1.info.toucher.damage = 4;
|
||||
FALLTHROUGH;
|
||||
case 1:
|
||||
this->dirtWavePhase += 0x47E;
|
||||
Math_SmoothStepToF(&this->dirtWaveSpread, 300.0f, 1.0f, 8.0f, 0.0f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue