diff options
author | tycho <tycho@localhost> | 2015-03-21 18:17:26 +0100 |
---|---|---|
committer | tycho <tycho@localhost> | 2015-05-07 04:47:46 +0200 |
commit | 448df85e569e85e1b4da4eac685950273f30ae1f (patch) | |
tree | 045241fff430ae2ffe0b97d7151e44293ad76467 /src/Entities | |
parent | Merge pull request #1946 from SafwatHalaby/lean (diff) | |
download | cuberite-448df85e569e85e1b4da4eac685950273f30ae1f.tar cuberite-448df85e569e85e1b4da4eac685950273f30ae1f.tar.gz cuberite-448df85e569e85e1b4da4eac685950273f30ae1f.tar.bz2 cuberite-448df85e569e85e1b4da4eac685950273f30ae1f.tar.lz cuberite-448df85e569e85e1b4da4eac685950273f30ae1f.tar.xz cuberite-448df85e569e85e1b4da4eac685950273f30ae1f.tar.zst cuberite-448df85e569e85e1b4da4eac685950273f30ae1f.zip |
Diffstat (limited to 'src/Entities')
-rw-r--r-- | src/Entities/Floater.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Entities/Floater.cpp b/src/Entities/Floater.cpp index cf8dd6c6f..0c868270d 100644 --- a/src/Entities/Floater.cpp +++ b/src/Entities/Floater.cpp @@ -6,7 +6,7 @@ #include "Floater.h" #include "Player.h" #include "../ClientHandle.h" - +#include "Broadcaster.h" @@ -145,12 +145,12 @@ void cFloater::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) { LOGD("Started producing particles for floater %i", GetUniqueID()); m_ParticlePos.Set(GetPosX() + (-4 + m_World->GetTickRandomNumber(8)), GetPosY(), GetPosZ() + (-4 + m_World->GetTickRandomNumber(8))); - m_World->BroadcastParticleEffect("splash", (float) m_ParticlePos.x, (float) m_ParticlePos.y, (float) m_ParticlePos.z, 0, 0, 0, 0, 15); + m_World->GetBroadcaster().BroadcastParticleEffect("splash", static_cast<Vector3f>(m_ParticlePos), Vector3f{}, 0, 15); } else if (m_CountDownTime < 20) { m_ParticlePos = (m_ParticlePos + (GetPosition() - m_ParticlePos) / 6); - m_World->BroadcastParticleEffect("splash", (float) m_ParticlePos.x, (float) m_ParticlePos.y, (float) m_ParticlePos.z, 0, 0, 0, 0, 15); + m_World->GetBroadcaster().BroadcastParticleEffect("splash", static_cast<Vector3f>(m_ParticlePos), Vector3f{}, 0, 15); } m_CountDownTime--; |