summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-19 21:53:47 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-19 21:53:47 +0100
commit03a8dfc4a8daf2ef3ea63b1fdf161018acbe12ce (patch)
tree82dd75c70052b9b32781a589b7d2cee13faa237f /src/ClientHandle.cpp
parentFixed 1.7 arm swing animation (diff)
downloadcuberite-03a8dfc4a8daf2ef3ea63b1fdf161018acbe12ce.tar
cuberite-03a8dfc4a8daf2ef3ea63b1fdf161018acbe12ce.tar.gz
cuberite-03a8dfc4a8daf2ef3ea63b1fdf161018acbe12ce.tar.bz2
cuberite-03a8dfc4a8daf2ef3ea63b1fdf161018acbe12ce.tar.lz
cuberite-03a8dfc4a8daf2ef3ea63b1fdf161018acbe12ce.tar.xz
cuberite-03a8dfc4a8daf2ef3ea63b1fdf161018acbe12ce.tar.zst
cuberite-03a8dfc4a8daf2ef3ea63b1fdf161018acbe12ce.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index de0a57a0a..1e63e2ba1 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -264,9 +264,6 @@ void cClientHandle::Authenticate(void)
// Send experience
m_Player->SendExperience();
- // Send gamemode (1.6.1 movementSpeed):
- SendGameMode(m_Player->GetGameMode());
-
m_Player->Initialize(World);
m_State = csAuthenticated;
@@ -489,6 +486,9 @@ void cClientHandle::HandleCreativeInventory(short a_SlotNum, const cItem & a_Hel
void cClientHandle::HandlePlayerAbilities(bool a_CanFly, bool a_IsFlying, float FlyingSpeed, float WalkingSpeed)
{
+ UNUSED(FlyingSpeed); // Ignore the client values for these
+ UNUSED(WalkingSpeed);
+
m_Player->SetCanFly(a_CanFly);
m_Player->SetFlying(a_IsFlying);
}