TNT: Added physics to TNT entity
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1435 0a769ca7-a7f5-676a-18bf-c427514a06d6master
parent
46fef2a18a
commit
75a254fccb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue