diff options
author | Mattes D <github@xoft.cz> | 2014-11-16 15:13:39 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-11-16 15:13:39 +0100 |
commit | a63eb1ac6e1838a23cd4c97eefd5085c7d97b43f (patch) | |
tree | 7d3535001019a6d648e83eb526be30ba538e485a /src/World.cpp | |
parent | APIDump: Fixed example cCompositeChat URL (diff) | |
parent | Renamed m_UsedViewDistance to m_CurrentViewDistance (diff) | |
download | cuberite-a63eb1ac6e1838a23cd4c97eefd5085c7d97b43f.tar cuberite-a63eb1ac6e1838a23cd4c97eefd5085c7d97b43f.tar.gz cuberite-a63eb1ac6e1838a23cd4c97eefd5085c7d97b43f.tar.bz2 cuberite-a63eb1ac6e1838a23cd4c97eefd5085c7d97b43f.tar.lz cuberite-a63eb1ac6e1838a23cd4c97eefd5085c7d97b43f.tar.xz cuberite-a63eb1ac6e1838a23cd4c97eefd5085c7d97b43f.tar.zst cuberite-a63eb1ac6e1838a23cd4c97eefd5085c7d97b43f.zip |
Diffstat (limited to 'src/World.cpp')
-rw-r--r-- | src/World.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/World.cpp b/src/World.cpp index 68855e617..288cf0154 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -283,6 +283,7 @@ cWorld::cWorld(const AString & a_WorldName, eDimension a_Dimension, const AStrin m_bCommandBlocksEnabled(true), m_bUseChatPrefixes(false), m_TNTShrapnelLevel(slNone), + m_MaxViewDistance(12), m_Scoreboard(this), m_MapManager(this), m_GeneratorCallbacks(*this), @@ -561,6 +562,8 @@ void cWorld::Start(void) m_BroadcastDeathMessages = IniFile.GetValueSetB("Broadcasting", "BroadcastDeathMessages", true); m_BroadcastAchievementMessages = IniFile.GetValueSetB("Broadcasting", "BroadcastAchievementMessages", true); + SetMaxViewDistance(IniFile.GetValueSetI("SpawnPosition", "MaxViewDistance", 12)); + // Try to find the "SpawnPosition" key and coord values in the world configuration, set the flag if found int KeyNum = IniFile.FindKey("SpawnPosition"); m_IsSpawnExplicitlySet = |