1
0

Tracer::signum function now returns int

convert c style casts to c++ static casts

Changed fabs() to std::abs()
This commit is contained in:
Woazboat
2015-04-28 02:51:21 +02:00
parent c74bfc35d6
commit 8a50918d2a
3 changed files with 29 additions and 25 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