summaryrefslogtreecommitdiffstats
path: root/src/ChunkDef.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-03-10 23:13:08 +0100
committerMattes D <github@xoft.cz>2014-03-10 23:13:08 +0100
commitb72661681c0676b6977e95a1d58eb8e282582b73 (patch)
tree9d5e7cccb22d13dd15ad015b4765053d528ca58c /src/ChunkDef.h
parentMerge pull request #767 from worktycho/envmatrix (diff)
parentRemoved debugging output. (diff)
downloadcuberite-b72661681c0676b6977e95a1d58eb8e282582b73.tar
cuberite-b72661681c0676b6977e95a1d58eb8e282582b73.tar.gz
cuberite-b72661681c0676b6977e95a1d58eb8e282582b73.tar.bz2
cuberite-b72661681c0676b6977e95a1d58eb8e282582b73.tar.lz
cuberite-b72661681c0676b6977e95a1d58eb8e282582b73.tar.xz
cuberite-b72661681c0676b6977e95a1d58eb8e282582b73.tar.zst
cuberite-b72661681c0676b6977e95a1d58eb8e282582b73.zip
Diffstat (limited to '')
-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];