diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-12-25 15:05:37 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-12-25 15:05:37 +0100 |
commit | 40c2826a21d71dd8829a29f97fdfb36b68eaba14 (patch) | |
tree | 6536f0f2f62175a0a3fb72e6ac5297e6a24d50a2 /src/Entities/Player.cpp | |
parent | Used IsGamemodeCreative() function (diff) | |
download | cuberite-40c2826a21d71dd8829a29f97fdfb36b68eaba14.tar cuberite-40c2826a21d71dd8829a29f97fdfb36b68eaba14.tar.gz cuberite-40c2826a21d71dd8829a29f97fdfb36b68eaba14.tar.bz2 cuberite-40c2826a21d71dd8829a29f97fdfb36b68eaba14.tar.lz cuberite-40c2826a21d71dd8829a29f97fdfb36b68eaba14.tar.xz cuberite-40c2826a21d71dd8829a29f97fdfb36b68eaba14.tar.zst cuberite-40c2826a21d71dd8829a29f97fdfb36b68eaba14.zip |
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r-- | src/Entities/Player.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index a4b580b00..41c1542d3 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -249,7 +249,9 @@ void cPlayer::Tick(float a_Dt, cChunk & a_Chunk) } if (IsFlying()) + { m_LastGroundHeight = (float)GetPosY(); + } } |