diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-05-18 15:30:16 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-05-18 15:30:16 +0200 |
commit | 0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9 (patch) | |
tree | dc5046599788117404826792986eb073ef3b27db /src/Entities | |
parent | Merge branch 'master' of https://github.com/mc-server/MCServer (diff) | |
download | cuberite-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 'src/Entities')
-rw-r--r-- | src/Entities/Pickup.cpp | 1 |
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) |