summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Creeper.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-07-13 02:08:02 +0200
committerHowaner <franzi.moos@googlemail.com>2014-07-13 02:08:02 +0200
commitd529971e279609ae928d9077404b95bd595b5e52 (patch)
tree34aeac132b9cb73b7b68a1285815c168506e247c /src/Mobs/Creeper.cpp
parentOnly one instance of server can be started (diff)
downloadcuberite-d529971e279609ae928d9077404b95bd595b5e52.tar
cuberite-d529971e279609ae928d9077404b95bd595b5e52.tar.gz
cuberite-d529971e279609ae928d9077404b95bd595b5e52.tar.bz2
cuberite-d529971e279609ae928d9077404b95bd595b5e52.tar.lz
cuberite-d529971e279609ae928d9077404b95bd595b5e52.tar.xz
cuberite-d529971e279609ae928d9077404b95bd595b5e52.tar.zst
cuberite-d529971e279609ae928d9077404b95bd595b5e52.zip
Diffstat (limited to 'src/Mobs/Creeper.cpp')
-rw-r--r--src/Mobs/Creeper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mobs/Creeper.cpp b/src/Mobs/Creeper.cpp
index b9041bd5a..8ab09a4c5 100644
--- a/src/Mobs/Creeper.cpp
+++ b/src/Mobs/Creeper.cpp
@@ -125,7 +125,7 @@ void cCreeper::Attack(float a_Dt)
if (!m_bIsBlowing)
{
- m_World->BroadcastSoundEffect("game.tnt.primed", (int)GetPosX() * 8, (int)GetPosY() * 8, (int)GetPosZ() * 8, 1.f, (float)(0.75 + ((float)((GetUniqueID() * 23) % 32)) / 64));
+ m_World->BroadcastSoundEffect("game.tnt.primed", GetPosX(), GetPosY(), GetPosZ(), 1.f, (float)(0.75 + ((float)((GetUniqueID() * 23) % 32)) / 64));
m_bIsBlowing = true;
m_World->BroadcastEntityMetadata(*this);
}
@@ -143,7 +143,7 @@ void cCreeper::OnRightClicked(cPlayer & a_Player)
{
a_Player.UseEquippedItem();
}
- m_World->BroadcastSoundEffect("game.tnt.primed", (int)GetPosX() * 8, (int)GetPosY() * 8, (int)GetPosZ() * 8, 1.f, (float)(0.75 + ((float)((GetUniqueID() * 23) % 32)) / 64));
+ m_World->BroadcastSoundEffect("game.tnt.primed", GetPosX(), GetPosY(), GetPosZ(), 1.f, (float)(0.75 + ((float)((GetUniqueID() * 23) % 32)) / 64));
m_bIsBlowing = true;
m_World->BroadcastEntityMetadata(*this);
m_BurnedWithFlintAndSteel = true;