mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
clang warnings fix
This commit is contained in:
parent
4a22e8d57b
commit
f25677d6d2
20 changed files with 37 additions and 45 deletions
|
|
@ -106,7 +106,7 @@ void WorldRenderer::drawChunks(Chunks* chunks,
|
|||
}
|
||||
float px = camera->position.x / (float)CHUNK_W;
|
||||
float pz = camera->position.z / (float)CHUNK_D;
|
||||
std::sort(indices.begin(), indices.end(), [this, chunks, px, pz](size_t i, size_t j) {
|
||||
std::sort(indices.begin(), indices.end(), [chunks, px, pz](size_t i, size_t j) {
|
||||
auto a = chunks->chunks[i];
|
||||
auto b = chunks->chunks[j];
|
||||
return ((a->x + 0.5f - px)*(a->x + 0.5f - px) +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue