TNT: Added physics to TNT entity

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1435 0a769ca7-a7f5-676a-18bf-c427514a06d6
master
keyboard.osh@gmail.com 2013-04-28 20:22:15 +00:00
parent 46fef2a18a
commit 75a254fccb
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ void cTNTEntity::SpawnOn(cClientHandle & a_ClientHandle)
void cTNTEntity::Tick(float a_Dt, cChunk & a_Chunk)
{
super::Tick(a_Dt,a_Chunk);
BroadcastMovementUpdate();
float delta_time = a_Dt / 1000; //Convert miliseconds to seconds
m_Counter += delta_time;
if (m_Counter > m_MaxFuseTime) //Check if we go KABOOOM