summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-07-12 23:39:15 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-07-12 23:39:15 +0200
commita4abd52dcc0e862550972077b9da58c6cfffbc29 (patch)
treed46f26bb8eca62e80febf274e3ca4df66bea842b /src
parentMerge pull request #2330 from cuberite/libraryupdate (diff)
parentFixed DropSpenser sound #2333 (diff)
downloadcuberite-a4abd52dcc0e862550972077b9da58c6cfffbc29.tar
cuberite-a4abd52dcc0e862550972077b9da58c6cfffbc29.tar.gz
cuberite-a4abd52dcc0e862550972077b9da58c6cfffbc29.tar.bz2
cuberite-a4abd52dcc0e862550972077b9da58c6cfffbc29.tar.lz
cuberite-a4abd52dcc0e862550972077b9da58c6cfffbc29.tar.xz
cuberite-a4abd52dcc0e862550972077b9da58c6cfffbc29.tar.zst
cuberite-a4abd52dcc0e862550972077b9da58c6cfffbc29.zip
Diffstat (limited to '')
-rw-r--r--src/BlockEntities/DropSpenserEntity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BlockEntities/DropSpenserEntity.cpp b/src/BlockEntities/DropSpenserEntity.cpp
index 039f5d360..3a93e85a1 100644
--- a/src/BlockEntities/DropSpenserEntity.cpp
+++ b/src/BlockEntities/DropSpenserEntity.cpp
@@ -75,7 +75,7 @@ void cDropSpenserEntity::DropSpense(cChunk & a_Chunk)
if (SlotsCnt == 0)
{
// Nothing in the dropspenser, play the click sound
- m_World->BroadcastSoundEffect("random.click", m_PosX * 8, m_PosY * 8, m_PosZ * 8, 1.0f, 1.2f);
+ m_World->BroadcastSoundEffect("random.click", static_cast<double>(m_PosX), static_cast<double>(m_PosY), static_cast<double>(m_PosZ), 1.0f, 1.2f);
return;
}
@@ -97,7 +97,7 @@ void cDropSpenserEntity::DropSpense(cChunk & a_Chunk)
case E_META_DROPSPENSER_FACING_ZP: SmokeDir = 7; break;
}
m_World->BroadcastSoundParticleEffect(2000, m_PosX, m_PosY, m_PosZ, SmokeDir);
- m_World->BroadcastSoundEffect("random.click", m_PosX * 8, m_PosY * 8, m_PosZ * 8, 1.0f, 1.0f);
+ m_World->BroadcastSoundEffect("random.click", static_cast<double>(m_PosX), static_cast<double>(m_PosY), static_cast<double>(m_PosZ), 1.0f, 1.0f);
}