1
0
This commit is contained in:
andrew
2014-05-13 14:53:15 +03:00
parent aea866f5b1
commit 466ff2204f
5 changed files with 23 additions and 20 deletions

View File

@@ -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);
}