diff options
author | Mattes D <github@xoft.cz> | 2015-05-08 21:52:41 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-05-08 21:52:41 +0200 |
commit | 9329c2c2cb16d3ddbd3f810441752271da10f127 (patch) | |
tree | 7e7584d9d735a310e3b7b650ab2f8bc577103ce7 /src/SetChunkData.cpp | |
parent | Fix build URLs, now .tar.gz (diff) | |
parent | Added float comparison warning overrides to Vector3::hasNonZeroLength (diff) | |
download | cuberite-9329c2c2cb16d3ddbd3f810441752271da10f127.tar cuberite-9329c2c2cb16d3ddbd3f810441752271da10f127.tar.gz cuberite-9329c2c2cb16d3ddbd3f810441752271da10f127.tar.bz2 cuberite-9329c2c2cb16d3ddbd3f810441752271da10f127.tar.lz cuberite-9329c2c2cb16d3ddbd3f810441752271da10f127.tar.xz cuberite-9329c2c2cb16d3ddbd3f810441752271da10f127.tar.zst cuberite-9329c2c2cb16d3ddbd3f810441752271da10f127.zip |
Diffstat (limited to 'src/SetChunkData.cpp')
-rw-r--r-- | src/SetChunkData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SetChunkData.cpp b/src/SetChunkData.cpp index f2b58570d..c0ae31fd3 100644 --- a/src/SetChunkData.cpp +++ b/src/SetChunkData.cpp @@ -103,7 +103,7 @@ void cSetChunkData::CalculateHeightMap(void) int index = cChunkDef::MakeIndexNoCheck(x, y, z); if (m_BlockTypes[index] != E_BLOCK_AIR) { - m_HeightMap[x + z * cChunkDef::Width] = (HEIGHTTYPE)y; + m_HeightMap[x + z * cChunkDef::Width] = static_cast<HEIGHTTYPE>(y); break; } } // for y |