summaryrefslogtreecommitdiffstats
path: root/source/cWorld.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-09 17:37:34 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-09 17:37:34 +0200
commit47b675e47c6767c03de30854e7bc7071c8a078ea (patch)
tree8c73bee01afca99eee43f5559cc9145812a267aa /source/cWorld.cpp
parentWorld generator uses the new Ini interface; also set new defaults for the generator to match the best generation we currently have (diff)
downloadcuberite-47b675e47c6767c03de30854e7bc7071c8a078ea.tar
cuberite-47b675e47c6767c03de30854e7bc7071c8a078ea.tar.gz
cuberite-47b675e47c6767c03de30854e7bc7071c8a078ea.tar.bz2
cuberite-47b675e47c6767c03de30854e7bc7071c8a078ea.tar.lz
cuberite-47b675e47c6767c03de30854e7bc7071c8a078ea.tar.xz
cuberite-47b675e47c6767c03de30854e7bc7071c8a078ea.tar.zst
cuberite-47b675e47c6767c03de30854e7bc7071c8a078ea.zip
Diffstat (limited to '')
-rw-r--r--source/cWorld.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp
index 07ca7a0d1..7e24f2e4f 100644
--- a/source/cWorld.cpp
+++ b/source/cWorld.cpp
@@ -243,10 +243,10 @@ cWorld::cWorld( const AString & a_WorldName )
AString StorageSchema("Default");
cIniFile IniFile(m_IniFileName);
- m_SpawnX = IniFile.GetValueF ("SpawnPosition", "X", m_SpawnX);
- m_SpawnY = IniFile.GetValueF ("SpawnPosition", "Y", m_SpawnY);
- m_SpawnZ = IniFile.GetValueF ("SpawnPosition", "Z", m_SpawnZ);
- StorageSchema = IniFile.GetValue ("Storage", "Schema", StorageSchema);
+ m_SpawnX = IniFile.GetValueSetF("SpawnPosition", "X", m_SpawnX);
+ m_SpawnY = IniFile.GetValueSetF("SpawnPosition", "Y", m_SpawnY);
+ m_SpawnZ = IniFile.GetValueSetF("SpawnPosition", "Z", m_SpawnZ);
+ StorageSchema = IniFile.GetValueSet ("Storage", "Schema", StorageSchema);
m_MaxCactusHeight = IniFile.GetValueSetI("Plants", "MaxCactusHeight", 3);
m_MaxSugarcaneHeight = IniFile.GetValueSetI("Plants", "MaxSugarcaneHeight", 3);
m_IsCropsBonemealable = IniFile.GetValueSetB("Plants", "IsCropsBonemealable", true);
@@ -259,7 +259,7 @@ cWorld::cWorld( const AString & a_WorldName )
m_IsSugarcaneBonemealable = IniFile.GetValueSetB("Plants", "IsSugarcaneBonemealable", false);
m_IsCactusBonemealable = IniFile.GetValueSetB("Plants", "IsCactusBonemealable", false);
- m_GameMode = (eGameMode)IniFile.GetValueI("GameMode", "GameMode", m_GameMode );
+ m_GameMode = (eGameMode)IniFile.GetValueSetI("GameMode", "GameMode", m_GameMode );
if (!IniFile.WriteFile())
{