mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
Merge branch 'main' into fix-gc-trigger
This commit is contained in:
commit
5ad6d3ded3
1 changed files with 3 additions and 1 deletions
|
|
@ -309,7 +309,9 @@ static inline voxel* raycast_blocks(
|
||||||
} else {
|
} else {
|
||||||
iend = {ix, iy, iz};
|
iend = {ix, iy, iz};
|
||||||
norm = {0, 0, 0};
|
norm = {0, 0, 0};
|
||||||
norm[steppedIndex] = -step[steppedIndex];
|
if (steppedIndex != -1) {
|
||||||
|
norm[steppedIndex] = -step[steppedIndex];
|
||||||
|
}
|
||||||
return voxel;
|
return voxel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue