summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-11-18 20:00:04 +0100
committerMattes D <github@xoft.cz>2016-11-18 20:00:04 +0100
commit0bffa2935854d1b1d0110a33707650cafe084af7 (patch)
tree2e102088f7f8c1bb4b398de9043cf36c4e42767a /src/World.h
parentUpdated the Core. (diff)
downloadcuberite-0bffa2935854d1b1d0110a33707650cafe084af7.tar
cuberite-0bffa2935854d1b1d0110a33707650cafe084af7.tar.gz
cuberite-0bffa2935854d1b1d0110a33707650cafe084af7.tar.bz2
cuberite-0bffa2935854d1b1d0110a33707650cafe084af7.tar.lz
cuberite-0bffa2935854d1b1d0110a33707650cafe084af7.tar.xz
cuberite-0bffa2935854d1b1d0110a33707650cafe084af7.tar.zst
cuberite-0bffa2935854d1b1d0110a33707650cafe084af7.zip
Diffstat (limited to '')
-rw-r--r--src/World.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/World.h b/src/World.h
index 0bcd1f823..84f1d4957 100644
--- a/src/World.h
+++ b/src/World.h
@@ -9,6 +9,8 @@
#define MAX_PLAYERS 65535
+#include <functional>
+
#include "Simulator/SimulatorManager.h"
#include "ChunkMap.h"
#include "WorldStorage/WorldStorage.h"
@@ -26,9 +28,7 @@
#include "Blocks/WorldInterface.h"
#include "Blocks/BroadcastInterface.h"
#include "FastRandom.h"
-#include "ClientHandle.h"
#include "EffectID.h"
-#include <functional>
@@ -640,10 +640,7 @@ public:
void SetTNTShrapnelLevel(eShrapnelLevel a_Flag) { m_TNTShrapnelLevel = a_Flag; }
int GetMaxViewDistance(void) const { return m_MaxViewDistance; }
- void SetMaxViewDistance(int a_MaxViewDistance)
- {
- m_MaxViewDistance = Clamp(a_MaxViewDistance, cClientHandle::MIN_VIEW_DISTANCE, cClientHandle::MAX_VIEW_DISTANCE);
- }
+ void SetMaxViewDistance(int a_MaxViewDistance);
bool ShouldUseChatPrefixes(void) const { return m_bUseChatPrefixes; }
void SetShouldUseChatPrefixes(bool a_Flag) { m_bUseChatPrefixes = a_Flag; }