From b2138b132cc0f7bf03bdd723725729d76067ff23 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 18 Jun 2013 19:09:51 +0000 Subject: More TNT fixes. Chain-reaction TNTs are spawned in proper coordinates (FS #390) Centralized Primed TNT entity spawning and made available to the plugins. Internal changes for better TNT performance. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1604 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/TNTEntity.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'source/TNTEntity.cpp') diff --git a/source/TNTEntity.cpp b/source/TNTEntity.cpp index ec4bc6dfa..32850e246 100644 --- a/source/TNTEntity.cpp +++ b/source/TNTEntity.cpp @@ -8,22 +8,22 @@ -cTNTEntity::cTNTEntity(int a_X,int a_Y,int a_Z,float a_MaxFuseTime) : - super(etTNT, a_X + 0.5f, a_Y + 0.5f, a_Z + 0.5f) +cTNTEntity::cTNTEntity(double a_X, double a_Y, double a_Z, float a_FuseTimeInSec) : + super(etTNT, a_X, a_Y, a_Z), + m_Counter(0), + m_MaxFuseTime(a_FuseTimeInSec) { - m_MaxFuseTime = a_MaxFuseTime; - m_Counter = 0; } -cTNTEntity::cTNTEntity(const Vector3i a_Pos,float a_MaxFuseTime) : - super(etTNT, a_Pos.x,a_Pos.y,a_Pos.z) +cTNTEntity::cTNTEntity(const Vector3d & a_Pos, float a_FuseTimeInSec) : + super(etTNT, a_Pos.x, a_Pos.y, a_Pos.z), + m_Counter(0), + m_MaxFuseTime(a_FuseTimeInSec) { - m_MaxFuseTime = a_MaxFuseTime; - m_Counter = 0; } -- cgit v1.2.3