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