From d67cfe1cca2d226566bb547c929034ab64a2fd61 Mon Sep 17 00:00:00 2001 From: Juliano Leal Goncalves Date: Tue, 9 Mar 2021 23:30:32 -0300 Subject: [PATCH] :sparkles: Play item sound on auto-equip --- Source/inv.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/inv.cpp b/Source/inv.cpp index 462a6dcd9..7f5a0ef4a 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -773,6 +773,10 @@ bool AutoEquip(int playerNumber, const ItemStruct &item, int bodyLocation) plr[playerNumber].InvBody[bodyLocation] = item; + if (playerNumber == myplr) { + PlaySFX(ItemInvSnds[ItemCAnimTbl[item._iCurs]]); + } + NetSendCmdChItem(FALSE, bodyLocation); CalcPlrInv(playerNumber, TRUE);