diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-10-06 17:38:17 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-10-06 17:38:17 +0200 |
commit | 5a6b86180e0144a5671c747b838d14992c21afae (patch) | |
tree | 31e15e5b218fb719f66010f2cdf496d358a444b9 /src/ClientHandle.h | |
parent | Optimized chunk loader (diff) | |
download | cuberite-5a6b86180e0144a5671c747b838d14992c21afae.tar cuberite-5a6b86180e0144a5671c747b838d14992c21afae.tar.gz cuberite-5a6b86180e0144a5671c747b838d14992c21afae.tar.bz2 cuberite-5a6b86180e0144a5671c747b838d14992c21afae.tar.lz cuberite-5a6b86180e0144a5671c747b838d14992c21afae.tar.xz cuberite-5a6b86180e0144a5671c747b838d14992c21afae.tar.zst cuberite-5a6b86180e0144a5671c747b838d14992c21afae.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ClientHandle.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h index 897fb8705..018c537c6 100644 --- a/src/ClientHandle.h +++ b/src/ClientHandle.h @@ -357,6 +357,10 @@ private: bool m_HasSentDC; ///< True if a D/C packet has been sent in either direction + // Chunk position when the last StreamChunks() was called; used to avoid re-streaming while in the same chunk + int m_LastStreamedChunkX; + int m_LastStreamedChunkZ; + /** Seconds since the last packet data was received (updated in Tick(), reset in DataReceived()) */ float m_TimeSinceLastPacket; |