mirror of https://github.com/buggins/dlangui.git
fixes for dminer
This commit is contained in:
parent
21e39df8a3
commit
f9cfc04d3c
|
@ -176,6 +176,14 @@ struct SmallChunk {
|
||||||
return 0xFFFFFFFFFFFFFFFF; // can pass ALL
|
return 0xFFFFFFFFFFFFFFFF; // can pass ALL
|
||||||
return chunk.getSideCanPassToMask(opposite(dir));
|
return chunk.getSideCanPassToMask(opposite(dir));
|
||||||
}
|
}
|
||||||
|
private void findVisibleFacesNorth(ref ulong[8] dst) {
|
||||||
|
ulong canPass = getSideCanPassFromMask(Dir.NORTH);
|
||||||
|
for (int i = 0; i < 8; i++) {
|
||||||
|
ulong isVisible = visiblePlanesZ[i];
|
||||||
|
dst[i] = isVisible & canPass;
|
||||||
|
canPass = canPassPlanesZ[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
private void generateMasks() {
|
private void generateMasks() {
|
||||||
// x planes: z,y
|
// x planes: z,y
|
||||||
for(int x = 0; x < 8; x++) {
|
for(int x = 0; x < 8; x++) {
|
||||||
|
|
Loading…
Reference in New Issue