Browse Source

Play the sound of the item we're pasting, not what we picked up

pull/7885/head
Andrew James 1 year ago committed by Stephen C. Wills
parent
commit
b72327b972
  1. 5
      Source/inv.cpp

5
Source/inv.cpp

@ -573,6 +573,10 @@ void CheckInvPaste(Player &player, Point cursorPosition)
return;
}
if (&player == MyPlayer) {
PlaySFX(ItemInvSnds[ItemCAnimTbl[player.HoldItem._iCurs]]);
}
// Select the parameters that go into
// ChangeEquipment and add it to post switch
switch (location) {
@ -601,7 +605,6 @@ void CheckInvPaste(Player &player, Point cursorPosition)
CalcPlrInv(player, true);
if (&player == MyPlayer) {
PlaySFX(ItemInvSnds[ItemCAnimTbl[player.HoldItem._iCurs]]);
NewCursor(player.HoldItem);
}
}

Loading…
Cancel
Save