From 01b02f239755e58ca88066608a8e88acfa4e441a Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Mon, 3 Oct 2022 19:23:44 +0300 Subject: [PATCH] Using kMedPriority in CScriptSpecialFunction Former-commit-id: 2a8278c1b31504dafae9708a54aca013234ba88f --- src/MetroidPrime/ScriptObjects/CScriptSpecialFunction.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MetroidPrime/ScriptObjects/CScriptSpecialFunction.cpp b/src/MetroidPrime/ScriptObjects/CScriptSpecialFunction.cpp index 58819824..8d75e474 100644 --- a/src/MetroidPrime/ScriptObjects/CScriptSpecialFunction.cpp +++ b/src/MetroidPrime/ScriptObjects/CScriptSpecialFunction.cpp @@ -806,7 +806,7 @@ void CScriptSpecialFunction::ThinkSpinnerController(float dt, CStateManager& mgr if (!x1e4_27_sfx3Played) { if (x174_sfx3 != 0xFFFF) { CSfxManager::AddEmitter(x174_sfx3, GetTranslation(), CVector3f::Zero(), true, false, - 0x7F, kInvalidAreaId.value); + CSfxManager::kMedPriority, kInvalidAreaId.value); } x1e4_27_sfx3Played = true; @@ -822,7 +822,7 @@ void CScriptSpecialFunction::ThinkSpinnerController(float dt, CStateManager& mgr if (!x1e4_26_sfx2Played) { if (x172_sfx2 != 0xFFFF) { CSfxManager::AddEmitter(x172_sfx2, GetTranslation(), CVector3f::Zero(), true, false, - 0x7F, kInvalidAreaId.value); + CSfxManager::kMedPriority, kInvalidAreaId.value); } x1e4_26_sfx2Played = true; @@ -1100,7 +1100,7 @@ u32 CScriptSpecialFunction::GetSpecialEnding(const CStateManager& mgr) const { void CScriptSpecialFunction::AddOrUpdateEmitter(float pitch, CSfxHandle& handle, u16 id, const CVector3f& pos, uchar vol) { if (!handle) { - handle = CSfxManager::AddEmitter(id, pos, CVector3f::Zero(), vol, true, true, 0x7f, + handle = CSfxManager::AddEmitter(id, pos, CVector3f::Zero(), vol, true, true, CSfxManager::kMedPriority, kInvalidAreaId.value); } else { CSfxManager::UpdateEmitter(handle, pos, CVector3f::Zero(), vol);