diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-11-15 15:33:42 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-11-15 15:33:42 +0100 |
commit | 927d8d7702b71baa64dc70593ea71e1081c33a9c (patch) | |
tree | 50f23a7771aa8093df6fbfff93caad4207b6d647 /src/ClientHandle.cpp | |
parent | Renamed GetSettedViewDistance() to GetRequestedViewDistance() (diff) | |
download | cuberite-927d8d7702b71baa64dc70593ea71e1081c33a9c.tar cuberite-927d8d7702b71baa64dc70593ea71e1081c33a9c.tar.gz cuberite-927d8d7702b71baa64dc70593ea71e1081c33a9c.tar.bz2 cuberite-927d8d7702b71baa64dc70593ea71e1081c33a9c.tar.lz cuberite-927d8d7702b71baa64dc70593ea71e1081c33a9c.tar.xz cuberite-927d8d7702b71baa64dc70593ea71e1081c33a9c.tar.zst cuberite-927d8d7702b71baa64dc70593ea71e1081c33a9c.zip |
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index d5882da06..3feb4c596 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -66,7 +66,7 @@ int cClientHandle::s_ClientCount = 0; cClientHandle::cClientHandle(const cSocket * a_Socket, int a_ViewDistance) : m_UsedViewDistance(a_ViewDistance), - m_SetViewDistance(a_ViewDistance), + m_RequestedViewDistance(a_ViewDistance), m_IPString(a_Socket->GetIPString()), m_OutgoingData(64 KiB), m_Player(nullptr), @@ -2850,9 +2850,9 @@ void cClientHandle::SetViewDistance(int a_ViewDistance) { ASSERT(m_Player->GetWorld() == NULL); - m_SetViewDistance = a_ViewDistance; - m_UsedViewDistance = Clamp(m_SetViewDistance, cClientHandle::MIN_VIEW_DISTANCE, m_Player->GetWorld()->GetMaxViewDistance()); - LOGD("Setted view distance from %s to %i!", GetUsername().c_str(), m_UsedViewDistance); + m_RequestedViewDistance = a_ViewDistance; + m_UsedViewDistance = Clamp(a_ViewDistance, cClientHandle::MIN_VIEW_DISTANCE, m_Player->GetWorld()->GetMaxViewDistance()); + LOGD("Setted view distance from %s to %d!", GetUsername().c_str(), m_UsedViewDistance); } |