summaryrefslogtreecommitdiffstats
path: root/src/Generating
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-08-24 14:47:00 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-08-24 14:47:00 +0200
commit49de9c426923e31001e6e7e0b1f92c4bf47344a6 (patch)
tree0cae5ffa6e0d6c3e45ef8897967289310d1c2c6a /src/Generating
parentMerge pull request #2441 from mjhanninen/fix-osx-build-due-cc-flag (diff)
parentFix clang compile error (diff)
downloadcuberite-49de9c426923e31001e6e7e0b1f92c4bf47344a6.tar
cuberite-49de9c426923e31001e6e7e0b1f92c4bf47344a6.tar.gz
cuberite-49de9c426923e31001e6e7e0b1f92c4bf47344a6.tar.bz2
cuberite-49de9c426923e31001e6e7e0b1f92c4bf47344a6.tar.lz
cuberite-49de9c426923e31001e6e7e0b1f92c4bf47344a6.tar.xz
cuberite-49de9c426923e31001e6e7e0b1f92c4bf47344a6.tar.zst
cuberite-49de9c426923e31001e6e7e0b1f92c4bf47344a6.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/CompoGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generating/CompoGen.cpp b/src/Generating/CompoGen.cpp
index f55228b80..00a19b72b 100644
--- a/src/Generating/CompoGen.cpp
+++ b/src/Generating/CompoGen.cpp
@@ -377,7 +377,7 @@ void cCompoGenCache::ComposeTerrain(cChunkDesc & a_ChunkDesc, const cChunkDesc::
if (((m_NumHits + m_NumMisses) % 1024) == 10)
{
LOGD("CompoGenCache: %d hits, %d misses, saved %.2f %%", m_NumHits, m_NumMisses, 100.0 * m_NumHits / (m_NumHits + m_NumMisses));
- LOGD("CompoGenCache: Avg cache chain length: %.2f", (float)m_TotalChain / m_NumHits);
+ LOGD("CompoGenCache: Avg cache chain length: %.2f", static_cast<float>(m_TotalChain) / m_NumHits);
}
#endif // _DEBUG