summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-11-15 22:26:54 +0100
committerHowaner <franzi.moos@googlemail.com>2014-11-15 22:26:54 +0100
commit09cea625fcf2d1eb1fb37a57c5712d992c96e4fd (patch)
tree8998994303f688065504f16841f815dc436e7fa4 /src/ClientHandle.h
parentRenamed m_SetViewDistance to m_RequestedViewDistance (diff)
downloadcuberite-09cea625fcf2d1eb1fb37a57c5712d992c96e4fd.tar
cuberite-09cea625fcf2d1eb1fb37a57c5712d992c96e4fd.tar.gz
cuberite-09cea625fcf2d1eb1fb37a57c5712d992c96e4fd.tar.bz2
cuberite-09cea625fcf2d1eb1fb37a57c5712d992c96e4fd.tar.lz
cuberite-09cea625fcf2d1eb1fb37a57c5712d992c96e4fd.tar.xz
cuberite-09cea625fcf2d1eb1fb37a57c5712d992c96e4fd.tar.zst
cuberite-09cea625fcf2d1eb1fb37a57c5712d992c96e4fd.zip
Diffstat (limited to 'src/ClientHandle.h')
-rw-r--r--src/ClientHandle.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h
index c0826d7c4..8d241c1e7 100644
--- a/src/ClientHandle.h
+++ b/src/ClientHandle.h
@@ -221,7 +221,7 @@ public:
void SetViewDistance(int a_ViewDistance);
/** Returns the view distance that the player currently have. */
- int GetViewDistance(void) const { return m_UsedViewDistance; }
+ int GetViewDistance(void) const { return m_CurrentViewDistance; }
/** Returns the view distance that the player request, not the used view distance. */
int GetRequestedViewDistance(void) const { return m_RequestedViewDistance; }
@@ -339,8 +339,8 @@ private:
/** The type used for storing the names of registered plugin channels. */
typedef std::set<AString> cChannels;
- /** Number of chunks the player can see in each direction */
- int m_UsedViewDistance;
+ /** The actual view distance used, the minimum of client's requested view distance and world's max view distance. */
+ int m_CurrentViewDistance;
/** The requested view distance from the player. It isn't clamped with 1 and the max view distance of the world. */
int m_RequestedViewDistance;