mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
remove extra functions
This commit is contained in:
parent
93fac9960c
commit
a7d6c96a5c
4 changed files with 56 additions and 81 deletions
|
|
@ -656,7 +656,7 @@ void Chunks::translate(int32_t dx, int32_t dz) {
|
|||
}
|
||||
for (uint32_t z = 0; z < d; z++) {
|
||||
for (uint32_t x = 0; x < w; x++) {
|
||||
auto chunk = chunks[z * w + x];
|
||||
auto& chunk = chunks[z * w + x];
|
||||
int nx = x - dx;
|
||||
int nz = z - dz;
|
||||
if (chunk == nullptr) continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue