Using kMedPriority in CScriptSpecialFunction

Former-commit-id: 2a8278c1b3
This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-03 19:23:44 +03:00
parent bd8d881f6b
commit 01b02f2397
1 changed files with 3 additions and 3 deletions

View File

@ -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);