1
0

Debug: arrow log their position in each tick

This commit is contained in:
madmaxoft
2013-08-26 22:27:28 +02:00
parent 4bbade9fc6
commit 71cfb8fcd2
3 changed files with 39 additions and 19 deletions

View File

@@ -115,6 +115,18 @@ bool cArrowEntity::CanPickup(const cPlayer & a_Player) const
void cArrowEntity::Tick(float a_Dt, cChunk & a_Chunk)
{
super::Tick(a_Dt, a_Chunk);
// DEBUG:
LOGD("Arrow %d: {%.02f, %.02f, %.02f}", m_UniqueID, GetPosX(), GetPosY(), GetPosZ());
}
void cArrowEntity::SpawnOn(cClientHandle & a_Client)
{
a_Client.SendSpawnObject(*this, pkArrow, 0, 0, 0);