diff options
author | madmaxoft <github@xoft.cz> | 2013-08-19 22:48:13 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-19 22:48:13 +0200 |
commit | 97aff179c1e436ccb369ee2a08f25d9250ef637f (patch) | |
tree | ba4f91544aa2b0f31382dbcdbda40c903f1d3bf5 /source/Entities/Player.cpp | |
parent | DeadlockDetect now uses sleep instead of timed-wait semaphores. (diff) | |
download | cuberite-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 '')
-rw-r--r-- | source/Entities/Player.cpp | 4 |
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)); } |