summaryrefslogtreecommitdiffstats
path: root/source/Entities/Player.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-19 22:48:13 +0200
committermadmaxoft <github@xoft.cz>2013-08-19 22:48:13 +0200
commit97aff179c1e436ccb369ee2a08f25d9250ef637f (patch)
treeba4f91544aa2b0f31382dbcdbda40c903f1d3bf5 /source/Entities/Player.cpp
parentDeadlockDetect now uses sleep instead of timed-wait semaphores. (diff)
downloadcuberite-97aff179c1e436ccb369ee2a08f25d9250ef637f.tar
cuberite-97aff179c1e436ccb369ee2a08f25d9250ef637f.tar.gz
cuberite-97aff179c1e436ccb369ee2a08f25d9250ef637f.tar.bz2
cuberite-97aff179c1e436ccb369ee2a08f25d9250ef637f.tar.lz
cuberite-97aff179c1e436ccb369ee2a08f25d9250ef637f.tar.xz
cuberite-97aff179c1e436ccb369ee2a08f25d9250ef637f.tar.zst
cuberite-97aff179c1e436ccb369ee2a08f25d9250ef637f.zip
Diffstat (limited to 'source/Entities/Player.cpp')
-rw-r--r--source/Entities/Player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Entities/Player.cpp b/source/Entities/Player.cpp
index 8ad071453..3ccb4ca1d 100644
--- a/source/Entities/Player.cpp
+++ b/source/Entities/Player.cpp
@@ -340,9 +340,9 @@ void cPlayer::SetFoodTickTimer(int a_FoodTickTimer)
-void cPlayer::SetFoodExhaustionLevel(double a_FoodSaturationLevel)
+void cPlayer::SetFoodExhaustionLevel(double a_FoodExhaustionLevel)
{
- m_FoodExhaustionLevel = std::max(0.0, std::min(a_FoodSaturationLevel, 4.0));
+ m_FoodExhaustionLevel = std::max(0.0, std::min(a_FoodExhaustionLevel, 4.0));
}