summaryrefslogtreecommitdiffstats
path: root/source/TNTEntity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/TNTEntity.cpp')
-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;
}