summaryrefslogtreecommitdiffstats
path: root/src/Entities/ProjectileEntity.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-02 19:37:03 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-02 19:37:03 +0200
commitb8769e3fb48ce05f7a76e9e55b9d864f3474d311 (patch)
treeb2842e686fe509bf65d5b7df1f311706ce0de6f3 /src/Entities/ProjectileEntity.cpp
parentWebAdmin: Exported logo and background. (diff)
parentRe-added alternate spellings of darkgraywool. (diff)
downloadcuberite-b8769e3fb48ce05f7a76e9e55b9d864f3474d311.tar
cuberite-b8769e3fb48ce05f7a76e9e55b9d864f3474d311.tar.gz
cuberite-b8769e3fb48ce05f7a76e9e55b9d864f3474d311.tar.bz2
cuberite-b8769e3fb48ce05f7a76e9e55b9d864f3474d311.tar.lz
cuberite-b8769e3fb48ce05f7a76e9e55b9d864f3474d311.tar.xz
cuberite-b8769e3fb48ce05f7a76e9e55b9d864f3474d311.tar.zst
cuberite-b8769e3fb48ce05f7a76e9e55b9d864f3474d311.zip
Diffstat (limited to 'src/Entities/ProjectileEntity.cpp')
-rw-r--r--src/Entities/ProjectileEntity.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Entities/ProjectileEntity.cpp b/src/Entities/ProjectileEntity.cpp
index 43023ec28..acc9bd674 100644
--- a/src/Entities/ProjectileEntity.cpp
+++ b/src/Entities/ProjectileEntity.cpp
@@ -222,7 +222,8 @@ cProjectileEntity::cProjectileEntity(eKind a_Kind, cEntity * a_Creator, double a
m_ProjectileKind(a_Kind),
m_CreatorData(
((a_Creator != NULL) ? a_Creator->GetUniqueID() : -1),
- ((a_Creator != NULL) ? (a_Creator->IsPlayer() ? ((cPlayer *)a_Creator)->GetName() : "") : "")
+ ((a_Creator != NULL) ? (a_Creator->IsPlayer() ? ((cPlayer *)a_Creator)->GetName() : "") : ""),
+ ((a_Creator != NULL) ? a_Creator->GetEquippedWeapon().m_Enchantments : cEnchantments())
),
m_IsInGround(false)
{
@@ -235,7 +236,7 @@ cProjectileEntity::cProjectileEntity(eKind a_Kind, cEntity * a_Creator, double a
cProjectileEntity::cProjectileEntity(eKind a_Kind, cEntity * a_Creator, const Vector3d & a_Pos, const Vector3d & a_Speed, double a_Width, double a_Height) :
super(etProjectile, a_Pos.x, a_Pos.y, a_Pos.z, a_Width, a_Height),
m_ProjectileKind(a_Kind),
- m_CreatorData(a_Creator->GetUniqueID(), a_Creator->IsPlayer() ? ((cPlayer *)a_Creator)->GetName() : ""),
+ m_CreatorData(a_Creator->GetUniqueID(), a_Creator->IsPlayer() ? ((cPlayer *)a_Creator)->GetName() : "", a_Creator->GetEquippedWeapon().m_Enchantments),
m_IsInGround(false)
{
SetSpeed(a_Speed);