1
0

Shrapnel now configurable

This commit is contained in:
Tiger Wang
2014-03-10 18:35:02 +00:00
parent 53231bebd6
commit 462829e23d
3 changed files with 8 additions and 3 deletions

View File

@@ -1832,7 +1832,7 @@ 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->GetTickRandomNumber(100) < 20) // 20% chance of flinging stuff around
else if (m_World->IsTNTShrapnelEnabled() && (m_World->GetTickRandomNumber(100) < 20)) // 20% chance of flinging stuff around
{
if (!cBlockInfo::FullyOccupiesVoxel(area.GetBlockType(bx + x, by + y, bz + z)))
{