summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-05-06 20:38:01 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-05-06 20:38:01 +0200
commitcca8376a0127a3e1711ed46d7e5491750135e715 (patch)
tree895f1787abb4a1234aa58546eaefb37d2f971922 /src/Entities/Player.cpp
parentSuggestions'd (diff)
downloadcuberite-cca8376a0127a3e1711ed46d7e5491750135e715.tar
cuberite-cca8376a0127a3e1711ed46d7e5491750135e715.tar.gz
cuberite-cca8376a0127a3e1711ed46d7e5491750135e715.tar.bz2
cuberite-cca8376a0127a3e1711ed46d7e5491750135e715.tar.lz
cuberite-cca8376a0127a3e1711ed46d7e5491750135e715.tar.xz
cuberite-cca8376a0127a3e1711ed46d7e5491750135e715.tar.zst
cuberite-cca8376a0127a3e1711ed46d7e5491750135e715.zip
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r--src/Entities/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index d63e5461a..6ac11c270 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).Equals(Vector3d(0, 0, 0))) // Change in position from last tick?
+ if (GetPosition() != m_LastPos) // Change in position from last tick?
{
// Apply food exhaustion from movement:
ApplyFoodExhaustionFromMovement();