1
0

convert c style casts to c++ static casts

This commit is contained in:
Woazboat
2015-04-28 02:26:25 +02:00
parent e240cab523
commit 4e8b4981d8
2 changed files with 16 additions and 15 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