Fix wrong block size mask value

This commit is contained in:
Marc Gilleron 2017-08-20 17:45:44 +02:00
parent dc4f0c5cd1
commit 6b3f16e699

View File

@ -25,7 +25,7 @@ void VoxelMap::set_block_size_pow2(unsigned int p) {
_block_size_pow2 = p;
_block_size = 1 << _block_size_pow2;
_block_size_mask = _block_size_pow2 - 1;
_block_size_mask = _block_size - 1;
}
int VoxelMap::get_voxel(Vector3i pos, unsigned int c) {