Maintenance: Fold alias global gl_24862 g_vendingSaleAlarm (0x173824C) into its owner member CSession::m_muteSellSound (g_session 0x1

Batch #10384 by ragnarok-clanker: no function's compiled code changes; checked with 3 compiled unit(s), including every includer of Source/UI/Shop/UIMerchantItemMyShopWnd.h.
This commit is contained in:
ragnarok-clanker 2026-11-03 21:27:50 +00:00
commit decdf54a81
3 changed files with 4 additions and 8 deletions

View file

@ -1882,7 +1882,7 @@ void __stdcall sub_D08110(int field8, int itemIdWord, int quantityWord, int fiel
} else if (g_vendingOpenResultWindow != nullptr) {
g_vendingOpenResultWindow->SendMsg(nullptr, 0x17, 0, 0, 0, 0);
}
if (g_vendingOpenResultWindow != nullptr && g_vendingSaleAlarm) {
if (g_vendingOpenResultWindow != nullptr && g_session.m_muteSellSound) {
g_soundMgr->PlayWave("effect\\ef_steal.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
}
}
@ -1903,7 +1903,7 @@ void __declspec(noinline) __stdcall sub_D08670(int field14, int itemId, int quan
if (g_saleResultWindow != nullptr) {
g_saleResultWindow->SendMsg(nullptr, 0x77, fieldC, 0, 0, 0);
g_saleResultWindow->SendMsg(nullptr, 0x17, 0, 0, 0, 0);
if (g_vendingSaleAlarm) {
if (g_session.m_muteSellSound) {
g_soundMgr->PlayWave("effect\\ef_steal.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
}
if (g_session.GetList9Size() == 0) {