1
0

Unified cPlayer's Heal() function with cEntity's.

This commit is contained in:
madmaxoft
2013-10-24 11:05:43 +02:00
parent 54f5f71c9a
commit d359c5a2fe
2 changed files with 12 additions and 12 deletions

View File

@@ -349,11 +349,8 @@ void cPlayer::SetTouchGround(bool a_bTouchGround)
void cPlayer::Heal(int a_Health)
{
if (m_Health < GetMaxHealth())
{
m_Health = (short)std::min((int)a_Health + m_Health, (int)GetMaxHealth());
SendHealth();
}
super::Heal(a_Health);
SendHealth();
}