Player food level is reset on respawn
This commit is contained in:
parent
c5c233312a
commit
d155c1cb00
@ -505,6 +505,10 @@ void cPlayer::KilledBy(cEntity * a_Killer)
|
||||
void cPlayer::Respawn(void)
|
||||
{
|
||||
m_Health = GetMaxHealth();
|
||||
|
||||
// Reset food level:
|
||||
m_FoodLevel = 20;
|
||||
m_FoodSaturationLevel = 5;
|
||||
|
||||
m_ClientHandle->SendRespawn();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user