1
0
Fork 0

Hunger-per-distance is calculated only for the XZ distance

This commit is contained in:
madmaxoft 2013-07-28 11:54:37 +02:00
parent d155c1cb00
commit 0caadbb25c
1 changed files with 1 additions and 0 deletions

View File

@ -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