summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-20 00:06:39 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-20 00:06:39 +0100
commit0524d70774f830b08abb1dee4e8340b25c569d2a (patch)
treef13a38847167ace3b627abb50aabb66fe56d86ed /src/World.h
parentMerge branch 'master' into awesometnt (diff)
downloadcuberite-0524d70774f830b08abb1dee4e8340b25c569d2a.tar
cuberite-0524d70774f830b08abb1dee4e8340b25c569d2a.tar.gz
cuberite-0524d70774f830b08abb1dee4e8340b25c569d2a.tar.bz2
cuberite-0524d70774f830b08abb1dee4e8340b25c569d2a.tar.lz
cuberite-0524d70774f830b08abb1dee4e8340b25c569d2a.tar.xz
cuberite-0524d70774f830b08abb1dee4e8340b25c569d2a.tar.zst
cuberite-0524d70774f830b08abb1dee4e8340b25c569d2a.zip
Diffstat (limited to 'src/World.h')
-rw-r--r--src/World.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/World.h b/src/World.h
index 21c6ea01c..46aece18f 100644
--- a/src/World.h
+++ b/src/World.h
@@ -605,8 +605,8 @@ public:
bool AreCommandBlocksEnabled(void) const { return m_bCommandBlocksEnabled; }
void SetCommandBlocksEnabled(bool a_Flag) { m_bCommandBlocksEnabled = a_Flag; }
- unsigned char GetTNTShrapnelLevel(void) const { return m_TNTShrapnelLevel; }
- void SetTNTShrapnelLevel(int a_Flag) { m_TNTShrapnelLevel = a_Flag; }
+ eShrapnelLevel GetTNTShrapnelLevel(void) const { return m_TNTShrapnelLevel; }
+ void SetTNTShrapnelLevel(eShrapnelLevel a_Flag) { m_TNTShrapnelLevel = a_Flag; }
bool ShouldUseChatPrefixes(void) const { return m_bUseChatPrefixes; }
void SetShouldUseChatPrefixes(bool a_Flag) { m_bUseChatPrefixes = a_Flag; }
@@ -867,11 +867,9 @@ private:
bool m_bUseChatPrefixes;
/** The level of DoExplosionAt() projecting random affected blocks as FallingBlock entities
- 0 = None
- 1 = Only sand and gravel
- 2 = All blocks
+ See the eShrapnelLevel enumeration for details
*/
- int m_TNTShrapnelLevel;
+ eShrapnelLevel m_TNTShrapnelLevel;
cChunkGenerator m_Generator;