1
0
Fork 0

Player food level is reset on respawn

This commit is contained in:
madmaxoft 2013-07-28 11:52:24 +02:00
parent c5c233312a
commit d155c1cb00
1 changed files with 4 additions and 0 deletions

View File

@ -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();