ref: 4f2ac6067bec8735231d2ec896166683df69d365
parent: 94e576f035e0fbb5aa8843e22a0d65d3cba7a909
author: Snesrev <[email protected]>
date: Fri Sep 30 11:44:43 EDT 2022
Fix Moldorm bounce sound (#126)
--- a/sprite.c
+++ b/sprite.c
@@ -2700,7 +2700,7 @@
link_incapacitated_timer = 16;
SpriteSfx_QueueSfx2WithPan(k, 0x21);
sprite_delay_aux1[k] = 48;
- sound_effect_2 = Sprite_CalculateSfxPan(k);
+ sound_effect_2 = Sprite_CalculateSfxPan(k) | (enhanced_features0 & kFeatures0_MiscBugFixes ? 0x32 : 0);
Link_PlaceWeaponTink();
return kCheckDamageFromPlayer_Carry;
}
--- a/sprite_main.c
+++ b/sprite_main.c
@@ -524,7 +524,7 @@
&Sprite_PullSwitch_bounce,
&Sprite_PullSwitch_bounce,
&Sprite_08_Octorok,
- &Sprite_09_Moldorm_bounce,
+ &Sprite_09_GiantMoldorm,
&Sprite_08_Octorok,
&Sprite_0B_Cucco,
&Sprite_0C_OctorokStone,
@@ -8498,7 +8498,7 @@
kSpriteActiveRoutines[type](k);
}
-void Sprite_09_Moldorm_bounce(int k) { // 869469
+void Sprite_09_GiantMoldorm(int k) { // 869469
static const int8 kGiantMoldorm_Xvel[32] = {
24, 22, 17, 9, 0, -9, -17, -22, -24, -22, -17, -9, 0, 9, 17, 22,
36, 33, 25, 13, 0, -13, -25, -33, -36, -33, -25, -13, 0, 13, 25, 33,
@@ -8543,7 +8543,8 @@
link_actual_vel_x = pt.x;
link_incapacitated_timer = 24;
sprite_delay_aux1[k] = 48;
- sound_effect_2 = Sprite_CalculateSfxPan(k);
+ // For some reason they forgot to or in the sfx.
+ sound_effect_2 = Sprite_CalculateSfxPan(k) | (enhanced_features0 & kFeatures0_MiscBugFixes ? 0x32 : 0);
}
int j = sprite_D[k] + low_health * 16;
--- a/sprite_main.h
+++ b/sprite_main.h
@@ -375,7 +375,7 @@
void SpritePrep_SmallKey(int k);
void SpritePrep_KeySetItemDrop(int k);
void SpriteActive_Main(int k);
-void Sprite_09_Moldorm_bounce(int k);
+void Sprite_09_GiantMoldorm(int k);
void Sprite_01_Vulture_bounce(int k);
void Sprite_27_Deadrock(int k);
void Sprite_20_Sluggula(int k);