summaryrefslogtreecommitdiffstats
path: root/source/TNTEntity.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-18 21:09:51 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-18 21:09:51 +0200
commitb2138b132cc0f7bf03bdd723725729d76067ff23 (patch)
treed573bf041c1d47c7bf68cef49bae0be1d52ffc91 /source/TNTEntity.cpp
parentTNT fixes. (diff)
downloadcuberite-b2138b132cc0f7bf03bdd723725729d76067ff23.tar
cuberite-b2138b132cc0f7bf03bdd723725729d76067ff23.tar.gz
cuberite-b2138b132cc0f7bf03bdd723725729d76067ff23.tar.bz2
cuberite-b2138b132cc0f7bf03bdd723725729d76067ff23.tar.lz
cuberite-b2138b132cc0f7bf03bdd723725729d76067ff23.tar.xz
cuberite-b2138b132cc0f7bf03bdd723725729d76067ff23.tar.zst
cuberite-b2138b132cc0f7bf03bdd723725729d76067ff23.zip
Diffstat (limited to '')
-rw-r--r--source/TNTEntity.cpp16
1 files changed, 8 insertions, 8 deletions
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;
}