summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-05-13 13:53:15 +0200
committerandrew <xdotftw@gmail.com>2014-05-13 13:53:15 +0200
commit466ff2204f18fda5f4f0f0b3e19f671d57747c24 (patch)
tree164ce181d4c1bde9801f51296e497a4a603796dc /src/Mobs
parentMovement Statistics (diff)
downloadcuberite-466ff2204f18fda5f4f0f0b3e19f671d57747c24.tar
cuberite-466ff2204f18fda5f4f0f0b3e19f671d57747c24.tar.gz
cuberite-466ff2204f18fda5f4f0f0b3e19f671d57747c24.tar.bz2
cuberite-466ff2204f18fda5f4f0f0b3e19f671d57747c24.tar.lz
cuberite-466ff2204f18fda5f4f0f0b3e19f671d57747c24.tar.xz
cuberite-466ff2204f18fda5f4f0f0b3e19f671d57747c24.tar.zst
cuberite-466ff2204f18fda5f4f0f0b3e19f671d57747c24.zip
Diffstat (limited to 'src/Mobs')
-rw-r--r--src/Mobs/Monster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index f3b408e68..b2e42445b 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -464,7 +464,7 @@ bool cMonster::DoTakeDamage(TakeDamageInfo & a_TDI)
return false;
}
- if ((m_SoundHurt != "") && (m_Health > 0))
+ if (!m_SoundHurt.empty() && (m_Health > 0))
{
m_World->BroadcastSoundEffect(m_SoundHurt, (int)(GetPosX() * 8), (int)(GetPosY() * 8), (int)(GetPosZ() * 8), 1.0f, 0.8f);
}