summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.cpp
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/ChunkMap.cpp
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 '')
-rw-r--r--src/ChunkMap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp
index 867b37ed0..e695f0ab2 100644
--- a/src/ChunkMap.cpp
+++ b/src/ChunkMap.cpp
@@ -1834,13 +1834,13 @@ void cChunkMap::DoExplosionAt(double a_ExplosionSize, double a_BlockX, double a_
Handler->ConvertToPickups(Drops, area.GetBlockMeta(bx + x, by + y, bz + z)); // Stone becomes cobblestone, coal ore becomes coal, etc.
m_World->SpawnItemPickups(Drops, bx + x, by + y, bz + z);
}
- else if ((m_World->GetTNTShrapnelLevel() > 0) && (m_World->GetTickRandomNumber(100) < 20)) // 20% chance of flinging stuff around
+ else if ((m_World->GetTNTShrapnelLevel() > slNone) && (m_World->GetTickRandomNumber(100) < 20)) // 20% chance of flinging stuff around
{
if (!cBlockInfo::FullyOccupiesVoxel(Block))
{
break;
}
- else if ((m_World->GetTNTShrapnelLevel() == 1) && ((Block != E_BLOCK_SAND) && (Block != E_BLOCK_GRAVEL)))
+ else if ((m_World->GetTNTShrapnelLevel() == slGravityAffectedOnly) && ((Block != E_BLOCK_SAND) && (Block != E_BLOCK_GRAVEL)))
{
break;
}