diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-10-30 21:24:10 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-10-30 21:24:10 +0100 |
commit | 9c7661f50f82fe265836f3279bf20b15aebba5b3 (patch) | |
tree | 85d4deca92d7159d94f9cacb40e0a62cb118b240 /src/World.cpp | |
parent | Merge pull request #1576 from mc-server/QtBiomeVisualiserThreadedGen (diff) | |
download | cuberite-9c7661f50f82fe265836f3279bf20b15aebba5b3.tar cuberite-9c7661f50f82fe265836f3279bf20b15aebba5b3.tar.gz cuberite-9c7661f50f82fe265836f3279bf20b15aebba5b3.tar.bz2 cuberite-9c7661f50f82fe265836f3279bf20b15aebba5b3.tar.lz cuberite-9c7661f50f82fe265836f3279bf20b15aebba5b3.tar.xz cuberite-9c7661f50f82fe265836f3279bf20b15aebba5b3.tar.zst cuberite-9c7661f50f82fe265836f3279bf20b15aebba5b3.zip |
Diffstat (limited to '')
-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 2e079d447..4e6ca264f 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 = |