summaryrefslogtreecommitdiffstats
path: root/src/Entities/ProjectileEntity.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-04-25 15:26:08 +0200
committerarchshift <admin@archshift.com>2014-04-25 15:26:08 +0200
commit8aa82d048d4506c963846d5c02650e1037e92992 (patch)
tree5883691e9e9f5b925a9deb35cfa59f66373c4ab0 /src/Entities/ProjectileEntity.cpp
parentComments for TrySpawnChicken() and TeleportUser(). (diff)
downloadcuberite-8aa82d048d4506c963846d5c02650e1037e92992.tar
cuberite-8aa82d048d4506c963846d5c02650e1037e92992.tar.gz
cuberite-8aa82d048d4506c963846d5c02650e1037e92992.tar.bz2
cuberite-8aa82d048d4506c963846d5c02650e1037e92992.tar.lz
cuberite-8aa82d048d4506c963846d5c02650e1037e92992.tar.xz
cuberite-8aa82d048d4506c963846d5c02650e1037e92992.tar.zst
cuberite-8aa82d048d4506c963846d5c02650e1037e92992.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/ProjectileEntity.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Entities/ProjectileEntity.cpp b/src/Entities/ProjectileEntity.cpp
index 89b833abf..fd3e80e5f 100644
--- a/src/Entities/ProjectileEntity.cpp
+++ b/src/Entities/ProjectileEntity.cpp
@@ -671,7 +671,7 @@ cThrownEnderPearlEntity::cThrownEnderPearlEntity(cEntity * a_Creator, double a_X
void cThrownEnderPearlEntity::OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFace)
{
// TODO: Tweak a_HitPos based on block face.
- TeleportUser(a_HitPos);
+ TeleportCreator(a_HitPos);
Destroy();
}
@@ -685,7 +685,7 @@ void cThrownEnderPearlEntity::OnHitEntity(cEntity & a_EntityHit, const Vector3d
int TotalDamage = 0;
// TODO: If entity is Ender Crystal, destroy it
- TeleportUser(a_HitPos);
+ TeleportCreator(a_HitPos);
a_EntityHit.TakeDamage(dtRangedAttack, this, TotalDamage, 1);
Destroy(true);
@@ -695,7 +695,7 @@ void cThrownEnderPearlEntity::OnHitEntity(cEntity & a_EntityHit, const Vector3d
-void cThrownEnderPearlEntity::TeleportUser(const Vector3d & a_HitPos)
+void cThrownEnderPearlEntity::TeleportCreator(const Vector3d & a_HitPos)
{
// Teleport the creator here, make them take 5 damage:
if (m_Creator != NULL)