summaryrefslogtreecommitdiffstats
path: root/source/cWorld.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-22 16:35:10 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-22 16:35:10 +0100
commitd9c25a161e62ffd04353fbdb10e2ffa1cfe98039 (patch)
tree686cf865711b7bca0148433f4b799400a6587dbd /source/cWorld.cpp
parentAdded a CriticalSection to cPlugin_NewLua. Lua plugins are not threadsafe but they ARE accessed by multiple threads, this can create some hard to find errors, but I fixed it now :P (diff)
downloadcuberite-d9c25a161e62ffd04353fbdb10e2ffa1cfe98039.tar
cuberite-d9c25a161e62ffd04353fbdb10e2ffa1cfe98039.tar.gz
cuberite-d9c25a161e62ffd04353fbdb10e2ffa1cfe98039.tar.bz2
cuberite-d9c25a161e62ffd04353fbdb10e2ffa1cfe98039.tar.lz
cuberite-d9c25a161e62ffd04353fbdb10e2ffa1cfe98039.tar.xz
cuberite-d9c25a161e62ffd04353fbdb10e2ffa1cfe98039.tar.zst
cuberite-d9c25a161e62ffd04353fbdb10e2ffa1cfe98039.zip
Diffstat (limited to '')
-rw-r--r--source/cWorld.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp
index 1b719d031..f8cef7cbb 100644
--- a/source/cWorld.cpp
+++ b/source/cWorld.cpp
@@ -223,28 +223,6 @@ cWorld::cWorld( const AString & a_WorldName )
m_Storage.Start(this, StorageSchema);
m_Generator.Start(this, GeneratorName);
- cIniFile GenSettings("terrain.ini");
- if( GenSettings.ReadFile() )
- {
-#define READ_INI_TERRAIN_VAL( var, type ) cGenSettings::var = (type)GenSettings.GetValueF("Terrain", #var, cGenSettings::var )
- READ_INI_TERRAIN_VAL( HeightFreq1, float );
- READ_INI_TERRAIN_VAL( HeightFreq2, float );
- READ_INI_TERRAIN_VAL( HeightFreq3, float );
- READ_INI_TERRAIN_VAL( HeightAmp1, float );
- READ_INI_TERRAIN_VAL( HeightAmp2, float );
- READ_INI_TERRAIN_VAL( HeightAmp3, float );
- }
- else
- {
-#define SET_INI_TERRAIN_VAL( var ) GenSettings.SetValueF("Terrain", #var, cGenSettings::var )
- SET_INI_TERRAIN_VAL( HeightFreq1 );
- SET_INI_TERRAIN_VAL( HeightFreq2 );
- SET_INI_TERRAIN_VAL( HeightFreq3 );
- SET_INI_TERRAIN_VAL( HeightAmp1 );
- SET_INI_TERRAIN_VAL( HeightAmp2 );
- SET_INI_TERRAIN_VAL( HeightAmp3 );
- GenSettings.WriteFile();
- }
m_bAnimals = true;
m_SpawnMonsterRate = 10;