diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-05-06 00:45:35 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-05-06 00:45:35 +0200 |
commit | 1df7dbe7c91953c2413908b846649e884b7ac53c (patch) | |
tree | e385aaf8d1a0c3bf7380aaf6847e66ecb1ba4873 /src/Entities/Player.cpp | |
parent | A bit of reformatting. (diff) | |
download | cuberite-1df7dbe7c91953c2413908b846649e884b7ac53c.tar cuberite-1df7dbe7c91953c2413908b846649e884b7ac53c.tar.gz cuberite-1df7dbe7c91953c2413908b846649e884b7ac53c.tar.bz2 cuberite-1df7dbe7c91953c2413908b846649e884b7ac53c.tar.lz cuberite-1df7dbe7c91953c2413908b846649e884b7ac53c.tar.xz cuberite-1df7dbe7c91953c2413908b846649e884b7ac53c.tar.zst cuberite-1df7dbe7c91953c2413908b846649e884b7ac53c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index bcbf58623..d63e5461a 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -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(); |