Steppy HeiGen: Fixed Linux compilation.
This commit is contained in:
parent
780a9ae9d1
commit
d2e1ed3a3b
@ -59,7 +59,7 @@ public:
|
|||||||
{
|
{
|
||||||
int heights[cChunkDef::Width * cChunkDef::Width];
|
int heights[cChunkDef::Width * cChunkDef::Width];
|
||||||
m_Gen->GetInts(a_ChunkX * cChunkDef::Width, a_ChunkZ * cChunkDef::Width, cChunkDef::Width, cChunkDef::Width, heights);
|
m_Gen->GetInts(a_ChunkX * cChunkDef::Width, a_ChunkZ * cChunkDef::Width, cChunkDef::Width, cChunkDef::Width, heights);
|
||||||
for (auto i = 0; i < ARRAYCOUNT(heights); i++)
|
for (size_t i = 0; i < ARRAYCOUNT(heights); i++)
|
||||||
{
|
{
|
||||||
a_HeightMap[i] = static_cast<HEIGHTTYPE>(std::max(std::min(60 + heights[i], cChunkDef::Height - 60), 40));
|
a_HeightMap[i] = static_cast<HEIGHTTYPE>(std::max(std::min(60 + heights[i], cChunkDef::Height - 60), 40));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user