Hunger: If a player dies the food level resets.
This commit is contained in:
parent
a0de91047a
commit
235c23d464
@ -505,6 +505,7 @@ void cPlayer::KilledBy(cEntity * a_Killer)
|
||||
void cPlayer::Respawn(void)
|
||||
{
|
||||
m_Health = GetMaxHealth();
|
||||
m_FoodLevel = 20;
|
||||
|
||||
m_ClientHandle->SendRespawn();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user