summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-10-02 23:50:41 +0200
committerHowaner <franzi.moos@googlemail.com>2014-10-02 23:50:41 +0200
commit382e014ebcd44a72788bea8cdcec7f64861b063f (patch)
tree15cbd3a7730666619af341b147106e055c9395c7 /src/ClientHandle.h
parentMerge pull request #1493 from Masy98/blocks (diff)
downloadcuberite-382e014ebcd44a72788bea8cdcec7f64861b063f.tar
cuberite-382e014ebcd44a72788bea8cdcec7f64861b063f.tar.gz
cuberite-382e014ebcd44a72788bea8cdcec7f64861b063f.tar.bz2
cuberite-382e014ebcd44a72788bea8cdcec7f64861b063f.tar.lz
cuberite-382e014ebcd44a72788bea8cdcec7f64861b063f.tar.xz
cuberite-382e014ebcd44a72788bea8cdcec7f64861b063f.tar.zst
cuberite-382e014ebcd44a72788bea8cdcec7f64861b063f.zip
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h
index 20592c190..897fb8705 100644
--- a/src/ClientHandle.h
+++ b/src/ClientHandle.h
@@ -113,7 +113,11 @@ public:
/** Authenticates the specified user, called by cAuthenticator */
void Authenticate(const AString & a_Name, const AString & a_UUID, const Json::Value & a_Properties);
- void StreamChunks(void);
+ /** This function sends a new unloaded chunk to the player. */
+ void StreamNextChunk(void);
+
+ /** Remove all loaded chunks that are no longer in range */
+ void UnloadOutOfRangeChunks(void);
// Removes the client from all chunks. Used when switching worlds or destroying the player
void RemoveFromAllChunks(void);
@@ -352,10 +356,6 @@ private:
cPlayer * m_Player;
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;