diff options
author | andrew <xdotftw@gmail.com> | 2014-05-12 20:38:52 +0200 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-05-12 20:38:52 +0200 |
commit | aea866f5b10d5ab0226260b4d25c70b1cfd31d2a (patch) | |
tree | a9d6352a70c41f3b32eb093fb18f8171971738c5 /src/Mobs/Monster.cpp | |
parent | cEntity::Killed(cEntity *) Handler; Achievement triggers; cPlayer::AwardAchievement() (diff) | |
download | cuberite-aea866f5b10d5ab0226260b4d25c70b1cfd31d2a.tar cuberite-aea866f5b10d5ab0226260b4d25c70b1cfd31d2a.tar.gz cuberite-aea866f5b10d5ab0226260b4d25c70b1cfd31d2a.tar.bz2 cuberite-aea866f5b10d5ab0226260b4d25c70b1cfd31d2a.tar.lz cuberite-aea866f5b10d5ab0226260b4d25c70b1cfd31d2a.tar.xz cuberite-aea866f5b10d5ab0226260b4d25c70b1cfd31d2a.tar.zst cuberite-aea866f5b10d5ab0226260b4d25c70b1cfd31d2a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Monster.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp index 62670907f..f3b408e68 100644 --- a/src/Mobs/Monster.cpp +++ b/src/Mobs/Monster.cpp @@ -464,8 +464,10 @@ bool cMonster::DoTakeDamage(TakeDamageInfo & a_TDI) return false; } - if((m_SoundHurt != "") && (m_Health > 0)) + if ((m_SoundHurt != "") && (m_Health > 0)) + { m_World->BroadcastSoundEffect(m_SoundHurt, (int)(GetPosX() * 8), (int)(GetPosY() * 8), (int)(GetPosZ() * 8), 1.0f, 0.8f); + } if (a_TDI.Attacker != NULL) { |