summaryrefslogtreecommitdiffstats
path: root/source/Player.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-07-28 11:52:24 +0200
committermadmaxoft <github@xoft.cz>2013-07-28 11:52:24 +0200
commitd155c1cb0043c86c0e1e6b1f41d7b194ce368f24 (patch)
tree94a62dfbfdfd5c7b207838161972171ace5d63a2 /source/Player.cpp
parentMerge remote-tracking branch 'origin/master' into hunger (diff)
downloadcuberite-d155c1cb0043c86c0e1e6b1f41d7b194ce368f24.tar
cuberite-d155c1cb0043c86c0e1e6b1f41d7b194ce368f24.tar.gz
cuberite-d155c1cb0043c86c0e1e6b1f41d7b194ce368f24.tar.bz2
cuberite-d155c1cb0043c86c0e1e6b1f41d7b194ce368f24.tar.lz
cuberite-d155c1cb0043c86c0e1e6b1f41d7b194ce368f24.tar.xz
cuberite-d155c1cb0043c86c0e1e6b1f41d7b194ce368f24.tar.zst
cuberite-d155c1cb0043c86c0e1e6b1f41d7b194ce368f24.zip
Diffstat (limited to 'source/Player.cpp')
-rw-r--r--source/Player.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Player.cpp b/source/Player.cpp
index 5609807b0..d5cfe8bcf 100644
--- a/source/Player.cpp
+++ b/source/Player.cpp
@@ -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();