MCPcopy Create free account
hub / github.com/cuberite/cuberite / GetMaxHeight

Method GetMaxHeight

src/Generating/ChunkDesc.cpp:373–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371
372
373HEIGHTTYPE cChunkDesc::GetMaxHeight(void) const
374{
375 HEIGHTTYPE MaxHeight = m_HeightMap[0];
376 for (size_t i = 1; i < ARRAYCOUNT(m_HeightMap); i++)
377 {
378 if (m_HeightMap[i] > MaxHeight)
379 {
380 MaxHeight = m_HeightMap[i];
381 }
382 }
383 return MaxHeight;
384}
385
386
387

Callers 2

GenFinishMethod · 0.80
ComposeTerrainMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected