diff options
author | tycho <work.tycho@gmail.com> | 2015-05-28 13:29:26 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-05-28 13:54:04 +0200 |
commit | b2fa71a32ac8bd86bda778a5d54fe2e7e471a1c0 (patch) | |
tree | ff9846d0ffa558e237ea148762f67b5ebf71a47d /src/Entities/SplashPotionEntity.cpp | |
parent | Merge branch 'master' into PreventNewWarnings (diff) | |
download | cuberite-b2fa71a32ac8bd86bda778a5d54fe2e7e471a1c0.tar cuberite-b2fa71a32ac8bd86bda778a5d54fe2e7e471a1c0.tar.gz cuberite-b2fa71a32ac8bd86bda778a5d54fe2e7e471a1c0.tar.bz2 cuberite-b2fa71a32ac8bd86bda778a5d54fe2e7e471a1c0.tar.lz cuberite-b2fa71a32ac8bd86bda778a5d54fe2e7e471a1c0.tar.xz cuberite-b2fa71a32ac8bd86bda778a5d54fe2e7e471a1c0.tar.zst cuberite-b2fa71a32ac8bd86bda778a5d54fe2e7e471a1c0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/SplashPotionEntity.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Entities/SplashPotionEntity.cpp b/src/Entities/SplashPotionEntity.cpp index a79ba92b0..926fd1abe 100644 --- a/src/Entities/SplashPotionEntity.cpp +++ b/src/Entities/SplashPotionEntity.cpp @@ -117,11 +117,12 @@ void cSplashPotionEntity::Splash(const Vector3d & a_HitPos) m_World->ForEachEntity(Callback); m_World->BroadcastSoundParticleEffect( - 2002, - static_cast<int>(floor(a_HitPos.x)), - static_cast<int>(floor(a_HitPos.y)), - static_cast<int>(floor(a_HitPos.z)), - m_PotionColor); + 2002, + FloorC(a_HitPos.x), + FloorC(a_HitPos.y), + FloorC(a_HitPos.z), + m_PotionColor + ); } |