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