diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-11-15 14:27:50 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-11-15 14:27:50 +0100 |
commit | 8c3c11d6b33c8ff71ad3f4e2c6ca67fc835dea33 (patch) | |
tree | bfa873cf8eab872224f4bf60a690ded640731422 /src | |
parent | Updated APIDump (diff) | |
download | cuberite-8c3c11d6b33c8ff71ad3f4e2c6ca67fc835dea33.tar cuberite-8c3c11d6b33c8ff71ad3f4e2c6ca67fc835dea33.tar.gz cuberite-8c3c11d6b33c8ff71ad3f4e2c6ca67fc835dea33.tar.bz2 cuberite-8c3c11d6b33c8ff71ad3f4e2c6ca67fc835dea33.tar.lz cuberite-8c3c11d6b33c8ff71ad3f4e2c6ca67fc835dea33.tar.xz cuberite-8c3c11d6b33c8ff71ad3f4e2c6ca67fc835dea33.tar.zst cuberite-8c3c11d6b33c8ff71ad3f4e2c6ca67fc835dea33.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/ClientHandle.h | 4 | ||||
-rw-r--r-- | src/Entities/Player.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h index 20789621d..db386d8a3 100644 --- a/src/ClientHandle.h +++ b/src/ClientHandle.h @@ -223,8 +223,8 @@ public: /** Returns the view distance that the player currently have. */ int GetViewDistance(void) const { return m_UsedViewDistance; } - /** Returns the view distance that the player set, not the used view distance. */ - int GetSettedViewDistance(void) const { return m_SetViewDistance; } + /** Returns the view distance that the player request, not the used view distance. */ + int GetRequestedViewDistance(void) const { return m_SetViewDistance; } void SetLocale(AString & a_Locale) { m_Locale = a_Locale; } AString GetLocale(void) const { return m_Locale; } diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 1fe14ff65..edcdb4799 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -1603,7 +1603,7 @@ bool cPlayer::DoMoveToWorld(cWorld * a_World, bool a_ShouldSendRespawn) SetWorld(a_World); // Chunks may be streamed before cWorld::AddPlayer() sets the world to the new value // Update the view distance. - m_ClientHandle->SetViewDistance(m_ClientHandle->GetSettedViewDistance()); + m_ClientHandle->SetViewDistance(m_ClientHandle->GetRequestedViewDistance()); return true; } |