summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-05 00:40:58 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-05 00:40:58 +0100
commit94c343fe079346caf24be265234cce194bc3b450 (patch)
tree276bb4da0238ff7290ad69853f81f88b419aff47 /src/ClientHandle.h
parentFixed annoying creative on fire bug (diff)
downloadcuberite-94c343fe079346caf24be265234cce194bc3b450.tar
cuberite-94c343fe079346caf24be265234cce194bc3b450.tar.gz
cuberite-94c343fe079346caf24be265234cce194bc3b450.tar.bz2
cuberite-94c343fe079346caf24be265234cce194bc3b450.tar.lz
cuberite-94c343fe079346caf24be265234cce194bc3b450.tar.xz
cuberite-94c343fe079346caf24be265234cce194bc3b450.tar.zst
cuberite-94c343fe079346caf24be265234cce194bc3b450.zip
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h
index e1f326543..29a56f5a7 100644
--- a/src/ClientHandle.h
+++ b/src/ClientHandle.h
@@ -53,9 +53,6 @@ public:
static const int MAX_VIEW_DISTANCE = 15;
static const int MIN_VIEW_DISTANCE = 3;
- /// How many ticks should be checked for a running average of explosions, for limiting purposes
- static const int NUM_CHECK_EXPLOSIONS_TICKS = 20;
-
cClientHandle(const cSocket * a_Socket, int a_ViewDistance);
virtual ~cClientHandle();
@@ -301,14 +298,8 @@ private:
/// If set to true during csDownloadingWorld, the tick thread calls CheckIfWorldDownloaded()
bool m_ShouldCheckDownloaded;
- /// Stores the recent history of the number of explosions per tick
- int m_NumExplosionsPerTick[NUM_CHECK_EXPLOSIONS_TICKS];
-
- /// Points to the current tick in the m_NumExplosionsPerTick[] array
- int m_CurrentExplosionTick;
-
- /// Running sum of m_NumExplosionsPerTick[]
- int m_RunningSumExplosions;
+ /** Number of explosions sent this tick */
+ int m_NumExplosionsThisTick;
static int s_ClientCount;
int m_UniqueID;