1
0

Fixed many slime bugs.

- Fixed slime hurt/death sound
- Added slime spawning on death.
- Fixed the max health.
- Fixed the attack damage.
- Little slimes should not attack players.
This commit is contained in:
Howaner
2014-07-17 22:32:23 +02:00
parent 3dd9649665
commit 52d4c49d5c
3 changed files with 74 additions and 7 deletions

View File

@@ -1146,10 +1146,7 @@ void cEntity::SetMaxHealth(int a_MaxHealth)
m_MaxHealth = a_MaxHealth;
// Reset health, if too high:
if (m_Health > a_MaxHealth)
{
m_Health = a_MaxHealth;
}
m_Health = std::min(m_Health, a_MaxHealth);
}