|
@@ -6,11 +6,7 @@ static constexpr int SEGMENT_MASK = (1 << SEGMENT_BITS) - 1;
|
|
|
|
|
|
BlockStorage::BlockStorage(int sizeBits, int heightBits)
|
|
|
: size(1 << sizeBits), height(1 << heightBits), sizeMask(size - 1) {
|
|
|
- // int pointers = (size * size * height) / SEGMENT;
|
|
|
maps.resize((size * size * height) / SEGMENT);
|
|
|
- // for(int i = 0; i < pointers; i++) {
|
|
|
- // maps.add();
|
|
|
- //}
|
|
|
}
|
|
|
|
|
|
BlockId BlockStorage::get(int x, int y, int z) const {
|