summaryrefslogtreecommitdiffstats
path: root/source/Entities/ProjectileEntity.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-26 22:27:28 +0200
committermadmaxoft <github@xoft.cz>2013-08-26 22:27:28 +0200
commit71cfb8fcd2a037feef0a2a2efe8e1bcb81f7750c (patch)
treefb040996e565cda6596e83875e756273ed1db065 /source/Entities/ProjectileEntity.cpp
parentArrows get loaded from MCA. (diff)
downloadcuberite-71cfb8fcd2a037feef0a2a2efe8e1bcb81f7750c.tar
cuberite-71cfb8fcd2a037feef0a2a2efe8e1bcb81f7750c.tar.gz
cuberite-71cfb8fcd2a037feef0a2a2efe8e1bcb81f7750c.tar.bz2
cuberite-71cfb8fcd2a037feef0a2a2efe8e1bcb81f7750c.tar.lz
cuberite-71cfb8fcd2a037feef0a2a2efe8e1bcb81f7750c.tar.xz
cuberite-71cfb8fcd2a037feef0a2a2efe8e1bcb81f7750c.tar.zst
cuberite-71cfb8fcd2a037feef0a2a2efe8e1bcb81f7750c.zip
Diffstat (limited to 'source/Entities/ProjectileEntity.cpp')
-rw-r--r--source/Entities/ProjectileEntity.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/Entities/ProjectileEntity.cpp b/source/Entities/ProjectileEntity.cpp
index 66d9409f5..552a61c42 100644
--- a/source/Entities/ProjectileEntity.cpp
+++ b/source/Entities/ProjectileEntity.cpp
@@ -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);