From 0bffa2935854d1b1d0110a33707650cafe084af7 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Fri, 18 Nov 2016 20:00:04 +0100 Subject: Removed ClientHandle.h dependencies from common headers. --- src/World.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/World.h') 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 + #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 @@ -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; } -- cgit v1.2.3