diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-02-15 19:52:15 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-02-16 01:25:39 +0100 |
commit | 707916b404e8ba16b8f39b43cb9e91af9d4b37b4 (patch) | |
tree | 8007f9a88f30eb7b209c68e9ab2a88bb290d382b /src/Entities/ProjectileEntity.cpp | |
parent | Add Exp Bottle Effects (diff) | |
download | cuberite-707916b404e8ba16b8f39b43cb9e91af9d4b37b4.tar cuberite-707916b404e8ba16b8f39b43cb9e91af9d4b37b4.tar.gz cuberite-707916b404e8ba16b8f39b43cb9e91af9d4b37b4.tar.bz2 cuberite-707916b404e8ba16b8f39b43cb9e91af9d4b37b4.tar.lz cuberite-707916b404e8ba16b8f39b43cb9e91af9d4b37b4.tar.xz cuberite-707916b404e8ba16b8f39b43cb9e91af9d4b37b4.tar.zst cuberite-707916b404e8ba16b8f39b43cb9e91af9d4b37b4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/ProjectileEntity.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Entities/ProjectileEntity.cpp b/src/Entities/ProjectileEntity.cpp index 718a04baf..ef82c6e94 100644 --- a/src/Entities/ProjectileEntity.cpp +++ b/src/Entities/ProjectileEntity.cpp @@ -12,8 +12,6 @@ #include "../ChunkMap.h" #include "../Chunk.h" -#include <math.h> - @@ -682,7 +680,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->BroadcastSoundParticleEffect(2002, POSX_TOINT, POSY_TOINT, POSZ_TOINT, 0); m_World->SpawnExperienceOrb(GetPosX(), GetPosY(), GetPosZ(), 3 + m_World->GetTickRandomNumber(8)); Destroy(); |