summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ClientHandle.h4
-rw-r--r--src/Entities/Player.cpp2
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;
}