summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-11-19 18:17:35 +0100
committerGitHub <noreply@github.com>2016-11-19 18:17:35 +0100
commit4ff997398773de36799b128bd4987cd36751f0c5 (patch)
tree2e102088f7f8c1bb4b398de9043cf36c4e42767a /src/World.h
parentUpdated the Core. (diff)
parentRemoved ClientHandle.h dependencies from common headers. (diff)
downloadcuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar.gz
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar.bz2
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar.lz
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar.xz
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar.zst
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.zip
Diffstat (limited to 'src/World.h')
-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; }