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 10:24:34 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-18 10:24:34 +0200
commit547c34132530a4dba841879595bd0762ef52a22d (patch)
tree8c9f14efe8e313244c0dc7a69e5e1952fc3da384 /source/TNTEntity.cpp
parentExtended the cloc stats for the entire project (diff)
downloadcuberite-547c34132530a4dba841879595bd0762ef52a22d.tar
cuberite-547c34132530a4dba841879595bd0762ef52a22d.tar.gz
cuberite-547c34132530a4dba841879595bd0762ef52a22d.tar.bz2
cuberite-547c34132530a4dba841879595bd0762ef52a22d.tar.lz
cuberite-547c34132530a4dba841879595bd0762ef52a22d.tar.xz
cuberite-547c34132530a4dba841879595bd0762ef52a22d.tar.zst
cuberite-547c34132530a4dba841879595bd0762ef52a22d.zip
Diffstat (limited to '')
-rw-r--r--source/TNTEntity.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/TNTEntity.cpp b/source/TNTEntity.cpp
index 4541a7c7f..ec4bc6dfa 100644
--- a/source/TNTEntity.cpp
+++ b/source/TNTEntity.cpp
@@ -41,7 +41,7 @@ void cTNTEntity::Initialize(cWorld * a_World)
void cTNTEntity::SpawnOn(cClientHandle & a_ClientHandle)
{
- a_ClientHandle.SendSpawnObject(*this,50,1,0,0); //50 means TNT
+ a_ClientHandle.SendSpawnObject(*this, 50, 1, 0, 0); // 50 means TNT
m_bDirtyPosition = false;
m_bDirtySpeed = false;
m_bDirtyOrientation = false;
@@ -54,15 +54,15 @@ void cTNTEntity::SpawnOn(cClientHandle & a_ClientHandle)
void cTNTEntity::Tick(float a_Dt, cChunk & a_Chunk)
{
- super::Tick(a_Dt,a_Chunk);
+ super::Tick(a_Dt, a_Chunk);
BroadcastMovementUpdate();
- float delta_time = a_Dt / 1000; //Convert miliseconds to seconds
+ float delta_time = a_Dt / 1000; // Convert miliseconds to seconds
m_Counter += delta_time;
- if (m_Counter > m_MaxFuseTime) //Check if we go KABOOOM
+ if (m_Counter > m_MaxFuseTime) // Check if we go KABOOOM
{
Destroy();
- LOGD("BOOM at {%f,%f,%f}",GetPosX(),GetPosY(),GetPosZ());
- m_World->DoExplosiontAt(4.0,(int)floor(GetPosX()),(int)floor(GetPosY()),(int)floor(GetPosZ()));
+ LOGD("BOOM at {%f,%f,%f}", GetPosX(), GetPosY(), GetPosZ());
+ m_World->DoExplosiontAt(4.0, (int)floor(GetPosX()), (int)floor(GetPosY()), (int)floor(GetPosZ()));
return;
}
}