diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-22 14:54:07 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-22 14:54:07 +0100 |
commit | caccf72b46e8e40fa17c2b55a40ed1b6dc6557f2 (patch) | |
tree | ddc0bf30ceadc9016f94de6eb42834c0b3a26d6a /src/Entities/Floater.cpp | |
parent | Countdown time is between 100 and 900 ticks. (diff) | |
download | cuberite-caccf72b46e8e40fa17c2b55a40ed1b6dc6557f2.tar cuberite-caccf72b46e8e40fa17c2b55a40ed1b6dc6557f2.tar.gz cuberite-caccf72b46e8e40fa17c2b55a40ed1b6dc6557f2.tar.bz2 cuberite-caccf72b46e8e40fa17c2b55a40ed1b6dc6557f2.tar.lz cuberite-caccf72b46e8e40fa17c2b55a40ed1b6dc6557f2.tar.xz cuberite-caccf72b46e8e40fa17c2b55a40ed1b6dc6557f2.tar.zst cuberite-caccf72b46e8e40fa17c2b55a40ed1b6dc6557f2.zip |
Diffstat (limited to 'src/Entities/Floater.cpp')
-rw-r--r-- | src/Entities/Floater.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Floater.cpp b/src/Entities/Floater.cpp index 6409fecf5..d908167df 100644 --- a/src/Entities/Floater.cpp +++ b/src/Entities/Floater.cpp @@ -52,12 +52,12 @@ void cFloater::Tick(float 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", m_ParticlePos.x, m_ParticlePos.y, m_ParticlePos.z, 0, 0, 0, 0, 15); + m_World->BroadcastParticleEffect("splash", (float) m_ParticlePos.x, (float) m_ParticlePos.y, (float) m_ParticlePos.z, 0, 0, 0, 0, 15); } else if (m_CountDownTime < 20) { m_ParticlePos = (m_ParticlePos + (GetPosition() - m_ParticlePos) / 6); - m_World->BroadcastParticleEffect("splash", m_ParticlePos.x, m_ParticlePos.y, m_ParticlePos.z, 0, 0, 0, 0, 15); + m_World->BroadcastParticleEffect("splash", (float) m_ParticlePos.x, (float) m_ParticlePos.y, (float) m_ParticlePos.z, 0, 0, 0, 0, 15); } m_CountDownTime--; } |