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();
|
m_Health = GetMaxHealth();
|
||||||
|
|
||||||
|
// Reset food level:
|
||||||
|
m_FoodLevel = 20;
|
||||||
|
m_FoodSaturationLevel = 5;
|
||||||
|
|
||||||
m_ClientHandle->SendRespawn();
|
m_ClientHandle->SendRespawn();
|
||||||
|
|
||||||
// Extinguish the fire:
|
// Extinguish the fire:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user