From 0caadbb25ce9c4c3f9d51a0898af182889802784 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sun, 28 Jul 2013 11:54:37 +0200 Subject: Hunger-per-distance is calculated only for the XZ distance --- source/Player.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Player.cpp b/source/Player.cpp index d5cfe8bcf..2aa041ff4 100644 --- a/source/Player.cpp +++ b/source/Player.cpp @@ -1323,6 +1323,7 @@ void cPlayer::ApplyFoodExhaustionFromMovement(cChunk & a_Chunk) // Calculate the distance travelled, update the last pos: Vector3d Movement(GetPosition() - m_LastFoodPos); + Movement.y = 0; // Only take XZ movement into account m_LastFoodPos = GetPosition(); // If riding anything, apply no food exhaustion -- cgit v1.2.3