mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-06-04 17:14:42 +00:00
Fix issue with AVX
This commit is contained in:
@@ -718,28 +718,24 @@ void LevelRenderer::resortChunks(int xc, int yc, int zc)
|
||||
_mm_store_si128((__m128i*)resMax, vYMax);
|
||||
for(int i = 0; i < 4; i++)
|
||||
{
|
||||
if (resMin[i] < yMinChunk) yMinChunk = resMin[i];
|
||||
if (resMax[i] > yMaxChunk) yMaxChunk = resMax[i];
|
||||
if (resMin[i] < yMinChunk)
|
||||
yMinChunk = resMin[i];
|
||||
if (resMax[i] > yMaxChunk)
|
||||
yMaxChunk = resMax[i];
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
for (int y = 0; y < yChunks; y++)
|
||||
{
|
||||
int yy = y * CHUNK_SIZE;
|
||||
if (yy < yMinChunk) yMinChunk = yy;
|
||||
if (yy > yMaxChunk) yMaxChunk = yy;
|
||||
if (yy < yMinChunk)
|
||||
yMinChunk = yy;
|
||||
if (yy > yMaxChunk)
|
||||
yMaxChunk = yy;
|
||||
|
||||
chunks[playerIndex][(z * yChunks + y) * xChunks + x].chunk->setPos(xx, yy, zz);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
for (int y = 0; y < yChunks; y++)
|
||||
{
|
||||
int yy = y * CHUNK_SIZE;
|
||||
if (yy < yMinChunk) yMinChunk = yy;
|
||||
if (yy > yMaxChunk) yMaxChunk = yy;
|
||||
|
||||
Chunk *chunk = chunks[playerIndex][(z * yChunks + y) * xChunks + x].chunk;
|
||||
chunk->setPos(xx, yy, zz);
|
||||
}
|
||||
}
|
||||
}
|
||||
nonStackDirtyChunksAdded();
|
||||
|
||||
Reference in New Issue
Block a user