diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-02-14 22:49:23 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-02-16 01:19:30 +0100 |
commit | f3bd288f020a8f004179513c0e260ac0f2855767 (patch) | |
tree | 174babd6e46d2979bb9d00124ac4cb3109d3e6c7 /src/Entities/ProjectileEntity.cpp | |
parent | Set max. Players in the Tablist to 60 (diff) | |
download | cuberite-f3bd288f020a8f004179513c0e260ac0f2855767.tar cuberite-f3bd288f020a8f004179513c0e260ac0f2855767.tar.gz cuberite-f3bd288f020a8f004179513c0e260ac0f2855767.tar.bz2 cuberite-f3bd288f020a8f004179513c0e260ac0f2855767.tar.lz cuberite-f3bd288f020a8f004179513c0e260ac0f2855767.tar.xz cuberite-f3bd288f020a8f004179513c0e260ac0f2855767.tar.zst cuberite-f3bd288f020a8f004179513c0e260ac0f2855767.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/ProjectileEntity.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Entities/ProjectileEntity.cpp b/src/Entities/ProjectileEntity.cpp index a3fa9d557..718a04baf 100644 --- a/src/Entities/ProjectileEntity.cpp +++ b/src/Entities/ProjectileEntity.cpp @@ -12,6 +12,8 @@ #include "../ChunkMap.h" #include "../Chunk.h" +#include <math.h> + @@ -680,6 +682,7 @@ super(pkExpBottle, a_Creator, a_X, a_Y, a_Z, 0.25, 0.25) void cExpBottleEntity::OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFace) { // Spawn an experience orb with a reward between 3 and 11. + m_World->BroadcastSoundParticleEffect(2002, (int) round(GetPosX()), (int) round(GetPosY()), (int) round(GetPosZ()), 0); m_World->SpawnExperienceOrb(GetPosX(), GetPosY(), GetPosZ(), 3 + m_World->GetTickRandomNumber(8)); Destroy(); |