summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-09 21:58:12 +0100
committermadmaxoft <github@xoft.cz>2014-03-09 21:58:12 +0100
commit81bf846e648bf757a67699c57f2a9e66f6850416 (patch)
tree01782d8d5afb4d6d8f95ad11a4151f0fb50b5263 /src
parentAdded cCuboid::Engulf(). (diff)
downloadcuberite-81bf846e648bf757a67699c57f2a9e66f6850416.tar
cuberite-81bf846e648bf757a67699c57f2a9e66f6850416.tar.gz
cuberite-81bf846e648bf757a67699c57f2a9e66f6850416.tar.bz2
cuberite-81bf846e648bf757a67699c57f2a9e66f6850416.tar.lz
cuberite-81bf846e648bf757a67699c57f2a9e66f6850416.tar.xz
cuberite-81bf846e648bf757a67699c57f2a9e66f6850416.tar.zst
cuberite-81bf846e648bf757a67699c57f2a9e66f6850416.zip
Diffstat (limited to 'src')
-rw-r--r--src/ChunkDef.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/ChunkDef.h b/src/ChunkDef.h
index 7be2fa2df..7876c58e7 100644
--- a/src/ChunkDef.h
+++ b/src/ChunkDef.h
@@ -62,16 +62,12 @@ typedef unsigned char HEIGHTTYPE;
class cChunkDef
{
public:
- enum
- {
- // Chunk dimensions:
- Width = 16,
- Height = 256,
- NumBlocks = Width * Height * Width,
-
- /// If the data is collected into a single buffer, how large it needs to be:
- BlockDataSize = cChunkDef::NumBlocks * 2 + (cChunkDef::NumBlocks / 2), // 2.5 * numblocks
- } ;
+ // Chunk dimensions:
+ static const int Width = 16;
+ static const int Height = 256;
+ static const int NumBlocks = Width * Height * Width;
+ /// If the data is collected into a single buffer, how large it needs to be:
+ static const int BlockDataSize = cChunkDef::NumBlocks * 2 + (cChunkDef::NumBlocks / 2); // 2.5 * numblocks
/// The type used for any heightmap operations and storage; idx = x + Width * z; Height points to the highest non-air block in the column
typedef HEIGHTTYPE HeightMap[Width * Width];