summaryrefslogtreecommitdiffstats
path: root/src/Generating/CompoGen.cpp
diff options
context:
space:
mode:
authorTheo Tosini <theo.tosini@theoduino.me>2015-08-24 05:11:08 +0200
committerTheo Tosini <theo.tosini@theoduino.me>2015-08-24 05:11:08 +0200
commit92b1a3440dcfae8a4ded4f9a36f1611eaffdf8a1 (patch)
tree0cae5ffa6e0d6c3e45ef8897967289310d1c2c6a /src/Generating/CompoGen.cpp
parentMerge pull request #2441 from mjhanninen/fix-osx-build-due-cc-flag (diff)
downloadcuberite-92b1a3440dcfae8a4ded4f9a36f1611eaffdf8a1.tar
cuberite-92b1a3440dcfae8a4ded4f9a36f1611eaffdf8a1.tar.gz
cuberite-92b1a3440dcfae8a4ded4f9a36f1611eaffdf8a1.tar.bz2
cuberite-92b1a3440dcfae8a4ded4f9a36f1611eaffdf8a1.tar.lz
cuberite-92b1a3440dcfae8a4ded4f9a36f1611eaffdf8a1.tar.xz
cuberite-92b1a3440dcfae8a4ded4f9a36f1611eaffdf8a1.tar.zst
cuberite-92b1a3440dcfae8a4ded4f9a36f1611eaffdf8a1.zip
Diffstat (limited to 'src/Generating/CompoGen.cpp')
-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