summaryrefslogtreecommitdiffstats
path: root/src/Generating/ComposableGenerator.cpp
diff options
context:
space:
mode:
authorDayBr3ak <benj.groeneveld@gmail.com>2014-09-03 02:53:21 +0200
committerDayBr3ak <benj.groeneveld@gmail.com>2014-09-03 02:53:21 +0200
commit5a608dc2794aa83ab687db5ae692c2d702729668 (patch)
treeb7f9598eac94694d92988e9bcc538dfbdfb1e787 /src/Generating/ComposableGenerator.cpp
parentforgot this one (diff)
downloadcuberite-5a608dc2794aa83ab687db5ae692c2d702729668.tar
cuberite-5a608dc2794aa83ab687db5ae692c2d702729668.tar.gz
cuberite-5a608dc2794aa83ab687db5ae692c2d702729668.tar.bz2
cuberite-5a608dc2794aa83ab687db5ae692c2d702729668.tar.lz
cuberite-5a608dc2794aa83ab687db5ae692c2d702729668.tar.xz
cuberite-5a608dc2794aa83ab687db5ae692c2d702729668.tar.zst
cuberite-5a608dc2794aa83ab687db5ae692c2d702729668.zip
Diffstat (limited to 'src/Generating/ComposableGenerator.cpp')
-rw-r--r--src/Generating/ComposableGenerator.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Generating/ComposableGenerator.cpp b/src/Generating/ComposableGenerator.cpp
index 0535e89f3..d70438bf3 100644
--- a/src/Generating/ComposableGenerator.cpp
+++ b/src/Generating/ComposableGenerator.cpp
@@ -243,11 +243,13 @@ void cComposableGenerator::InitBiomeGen(cIniFile & a_IniFile)
}
LOGD("Using a cache for biomegen of size %d.", CacheSize);
m_UnderlyingBiomeGen = m_BiomeGen;
- if (MultiCacheLength > 0) {
+ if (MultiCacheLength > 0)
+ {
LOGD("Enabling multicache for biomegen of length %d.", MultiCacheLength);
m_BiomeGen = new cBioGenMulticache(m_UnderlyingBiomeGen, CacheSize, MultiCacheLength);
}
- else {
+ else
+ {
m_BiomeGen = new cBioGenCache(m_UnderlyingBiomeGen, CacheSize);
}