summaryrefslogtreecommitdiffstats
path: root/source/ClientHandle.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-01 22:38:20 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-01 22:38:20 +0100
commit4cebaa99f88e25e039416354cf490fe98642af7e (patch)
tree40f8b0cc061e3ec55539e30754df3e3d1c17dd80 /source/ClientHandle.h
parentAdded Bats and Witches. (diff)
downloadcuberite-4cebaa99f88e25e039416354cf490fe98642af7e.tar
cuberite-4cebaa99f88e25e039416354cf490fe98642af7e.tar.gz
cuberite-4cebaa99f88e25e039416354cf490fe98642af7e.tar.bz2
cuberite-4cebaa99f88e25e039416354cf490fe98642af7e.tar.lz
cuberite-4cebaa99f88e25e039416354cf490fe98642af7e.tar.xz
cuberite-4cebaa99f88e25e039416354cf490fe98642af7e.tar.zst
cuberite-4cebaa99f88e25e039416354cf490fe98642af7e.zip
Diffstat (limited to '')
-rw-r--r--source/ClientHandle.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/ClientHandle.h b/source/ClientHandle.h
index c3b8ec731..a9a372186 100644
--- a/source/ClientHandle.h
+++ b/source/ClientHandle.h
@@ -110,7 +110,7 @@ public:
void SendSpawnMob (const cMonster & a_Mob);
void SendTeleportEntity (const cEntity & a_Entity);
void SendThunderbolt (int a_BlockX, int a_BlockY, int a_BlockZ);
- void SendTimeUpdate (Int64 a_WorldTime);
+ void SendTimeUpdate (Int64 a_WorldAge, Int64 a_TimeOfDay);
void SendUnloadChunk (int a_ChunkX, int a_ChunkZ);
void SendUpdateSign (int a_BlockX, int a_BlockY, int a_BlockZ, const AString & a_Line1, const AString & a_Line2, const AString & a_Line3, const AString & a_Line4);
void SendWeather (eWeather a_Weather);
@@ -207,7 +207,8 @@ private:
int m_LastStreamedChunkX;
int m_LastStreamedChunkZ;
- float m_TimeLastPacket;
+ /// Seconds since the last packet data was received (updated in Tick(), reset in DataReceived())
+ float m_TimeSinceLastPacket;
short m_Ping;
int m_PingID;