summaryrefslogtreecommitdiffstats
path: root/source/Items/ItemLighter.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/Items/ItemLighter.h')
-rw-r--r--source/Items/ItemLighter.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/Items/ItemLighter.h b/source/Items/ItemLighter.h
index bcea8545f..dcca08d47 100644
--- a/source/Items/ItemLighter.h
+++ b/source/Items/ItemLighter.h
@@ -34,8 +34,7 @@ public:
{
// Activate the TNT:
a_World->BroadcastSoundEffect("random.fuse", a_BlockX * 8, a_BlockY * 8, a_BlockZ * 8, 0.5f, 0.6f);
- cTNTEntity * TNT = new cTNTEntity(a_BlockX, a_BlockY, a_BlockZ, 4); // 4 seconds to boom
- TNT->Initialize(a_World);
+ a_World->SpawnPrimedTNT(a_BlockX + 0.5, a_BlockY + 0.5, a_BlockZ + 0.5, 4); // 4 seconds to boom
a_World->SetBlock(a_BlockX,a_BlockY,a_BlockZ, E_BLOCK_AIR, 0);
break;
}