summaryrefslogtreecommitdiffstats
path: root/src/Entities/Pickup.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-05-18 15:30:16 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-05-18 15:30:16 +0200
commit0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9 (patch)
treedc5046599788117404826792986eb073ef3b27db /src/Entities/Pickup.cpp
parentMerge branch 'master' of https://github.com/mc-server/MCServer (diff)
downloadcuberite-0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9.tar
cuberite-0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9.tar.gz
cuberite-0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9.tar.bz2
cuberite-0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9.tar.lz
cuberite-0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9.tar.xz
cuberite-0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9.tar.zst
cuberite-0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Pickup.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Entities/Pickup.cpp b/src/Entities/Pickup.cpp
index f2f76dbf9..520765b29 100644
--- a/src/Entities/Pickup.cpp
+++ b/src/Entities/Pickup.cpp
@@ -228,6 +228,7 @@ bool cPickup::CollectedBy(cPlayer & a_Dest)
m_Item.m_ItemCount -= NumAdded;
m_World->BroadcastCollectEntity(*this, a_Dest);
+
// Also send the "pop" sound effect with a somewhat random pitch (fast-random using EntityID ;)
m_World->BroadcastSoundEffect("random.pop", GetPosX(), GetPosY(), GetPosZ(), 0.5, (float)(0.75 + ((float)((GetUniqueID() * 23) % 32)) / 64));
if (m_Item.m_ItemCount <= 0)