Suggestions'd

This commit is contained in:
Tiger Wang
2014-05-05 23:45:35 +01:00
parent 5082d55e85
commit 1df7dbe7c9
3 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ void cPlayer::Tick(float a_Dt, cChunk & a_Chunk)
SendExperience();
}
if ((GetPosition() - m_LastPos).SqrLength() != 0.0) // Change in position from last tick?
if (!(GetPosition() - m_LastPos).Equals(Vector3d(0, 0, 0))) // Change in position from last tick?
{
// Apply food exhaustion from movement:
ApplyFoodExhaustionFromMovement();