diff options
author | madmaxoft <github@xoft.cz> | 2013-08-20 21:13:28 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-20 21:13:28 +0200 |
commit | 654c34705c1745f2bf5eb6b6266b8cd0df05caea (patch) | |
tree | 8b24b59853823d46926c72a6c064612caedc6d60 /source/ClientHandle.cpp | |
parent | Fixed a warning on closing invalid plugins. (diff) | |
download | cuberite-654c34705c1745f2bf5eb6b6266b8cd0df05caea.tar cuberite-654c34705c1745f2bf5eb6b6266b8cd0df05caea.tar.gz cuberite-654c34705c1745f2bf5eb6b6266b8cd0df05caea.tar.bz2 cuberite-654c34705c1745f2bf5eb6b6266b8cd0df05caea.tar.lz cuberite-654c34705c1745f2bf5eb6b6266b8cd0df05caea.tar.xz cuberite-654c34705c1745f2bf5eb6b6266b8cd0df05caea.tar.zst cuberite-654c34705c1745f2bf5eb6b6266b8cd0df05caea.zip |
Diffstat (limited to 'source/ClientHandle.cpp')
-rw-r--r-- | source/ClientHandle.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp index 57830f63c..319640eea 100644 --- a/source/ClientHandle.cpp +++ b/source/ClientHandle.cpp @@ -1522,6 +1522,16 @@ void cClientHandle::SendChat(const AString & a_Message) void cClientHandle::SendChunkData(int a_ChunkX, int a_ChunkZ, cChunkDataSerializer & a_Serializer) { + ASSERT(m_Player != NULL); + + if ((m_State == csAuthenticated) || (m_State == csDownloadingWorld)) + { + if ((a_ChunkX == m_Player->GetChunkX()) && (a_ChunkZ == m_Player->GetChunkZ())) + { + m_Protocol->SendPlayerMoveLook(); + } + } + // Check chunks being sent, erase them from m_ChunksToSend: bool Found = false; { |