summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-18 21:45:10 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-18 21:45:10 +0100
commit23ffaa19b7c93f076a2d5a85018f7fb1a2260ea8 (patch)
tree1a296ced512584e7e04d22263375ba3a6f38f813 /src/World.h
parentMerge remote-tracking branch 'origin/master' into awesometnt (diff)
downloadcuberite-23ffaa19b7c93f076a2d5a85018f7fb1a2260ea8.tar
cuberite-23ffaa19b7c93f076a2d5a85018f7fb1a2260ea8.tar.gz
cuberite-23ffaa19b7c93f076a2d5a85018f7fb1a2260ea8.tar.bz2
cuberite-23ffaa19b7c93f076a2d5a85018f7fb1a2260ea8.tar.lz
cuberite-23ffaa19b7c93f076a2d5a85018f7fb1a2260ea8.tar.xz
cuberite-23ffaa19b7c93f076a2d5a85018f7fb1a2260ea8.tar.zst
cuberite-23ffaa19b7c93f076a2d5a85018f7fb1a2260ea8.zip
Diffstat (limited to '')
-rw-r--r--src/World.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/World.h b/src/World.h
index ea24c39d5..2804e8386 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; }
- bool IsTNTShrapnelEnabled(void) const { return m_bTNTSpawnsShrapnel; }
- void SetTNTShrapnelEnabled(bool a_Flag) { m_bTNTSpawnsShrapnel = a_Flag; }
+ unsigned char GetTNTShrapnelLevel(void) const { return m_TNTShrapnelLevel; }
+ void SetTNTShrapnelLevel(int a_Flag) { m_TNTShrapnelLevel = a_Flag; }
bool ShouldUseChatPrefixes(void) const { return m_bUseChatPrefixes; }
void SetShouldUseChatPrefixes(bool a_Flag) { m_bUseChatPrefixes = a_Flag; }
@@ -866,8 +866,12 @@ private:
/** Whether prefixes such as [INFO] are prepended to SendMessageXXX() / BroadcastChatXXX() functions */
bool m_bUseChatPrefixes;
- /** Whether TNT explosions, done via cWorld::DoExplosionAt(), should project random affected blocks as FallingBlock entities */
- bool m_bTNTSpawnsShrapnel;
+ /** The level of DoExplosionAt() projecting random affected blocks as FallingBlock entities
+ 0 = None
+ 1 = Only sand and gravel
+ 2 = All blocks
+ */
+ int m_TNTShrapnelLevel;
cChunkGenerator m_Generator;