1
0

Merge pull request #1945 from Woazboat/CodeCleanup_refactored

Small code cleanup - clean version
This commit is contained in:
Mattes D
2015-05-08 21:52:41 +02:00
4 changed files with 88 additions and 43 deletions

View File

@@ -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