From db43ad3b72fe207e6cc03a1fd341ea598d123319 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 4 Oct 2013 19:19:53 +0300 Subject: add pickup and drop sound effects. Works like equip/unequip effects. --- src/dropshortcut.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/dropshortcut.cpp') diff --git a/src/dropshortcut.cpp b/src/dropshortcut.cpp index 6f0bb5ec4..af9f6b0f3 100644 --- a/src/dropshortcut.cpp +++ b/src/dropshortcut.cpp @@ -114,12 +114,12 @@ void DropShortcut::dropFirst() const const int cnt = player_node->getQuickDropCounter(); if (player_node->isServerBuggy()) { - Net::getInventoryHandler()->dropItem(item, cnt); + PlayerInfo::dropItem(item, cnt, true); } else { for (int i = 0; i < cnt; i++) - Net::getInventoryHandler()->dropItem(item, 1); + PlayerInfo::dropItem(item, 1, false); } } } @@ -175,7 +175,7 @@ bool DropShortcut::dropItem(const int cnt) const Item *const item = inv->findItem(itemId, itemColor); if (item && item->getQuantity() > 0) { - Net::getInventoryHandler()->dropItem(item, cnt); + PlayerInfo::dropItem(item, cnt, true); return true; } } @@ -198,7 +198,7 @@ bool DropShortcut::dropItem(const int cnt) const Item *const item = inv->findItem(itemId, itemColor); if (item && item->getQuantity() > 0) { - Net::getInventoryHandler()->dropItem(item, cnt); + PlayerInfo::dropItem(item, cnt, true); return true; } } -- cgit v1.2.3-70-g09d2