summaryrefslogtreecommitdiffstats
path: root/src/Entities/ProjectileEntity.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-04-19 02:10:14 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-04-19 21:08:24 +0200
commit9d124e6b0ad109c6b613baab4e019540c58a7570 (patch)
treeca80ac20ee51b6cffca0b8fdb70ee9a187576e4a /src/Entities/ProjectileEntity.cpp
parentAdded check for item damage (#4681) (diff)
downloadcuberite-9d124e6b0ad109c6b613baab4e019540c58a7570.tar
cuberite-9d124e6b0ad109c6b613baab4e019540c58a7570.tar.gz
cuberite-9d124e6b0ad109c6b613baab4e019540c58a7570.tar.bz2
cuberite-9d124e6b0ad109c6b613baab4e019540c58a7570.tar.lz
cuberite-9d124e6b0ad109c6b613baab4e019540c58a7570.tar.xz
cuberite-9d124e6b0ad109c6b613baab4e019540c58a7570.tar.zst
cuberite-9d124e6b0ad109c6b613baab4e019540c58a7570.zip
Diffstat (limited to 'src/Entities/ProjectileEntity.cpp')
-rw-r--r--src/Entities/ProjectileEntity.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/Entities/ProjectileEntity.cpp b/src/Entities/ProjectileEntity.cpp
index e4fec043e..22b5f9a39 100644
--- a/src/Entities/ProjectileEntity.cpp
+++ b/src/Entities/ProjectileEntity.cpp
@@ -244,16 +244,11 @@ cProjectileEntity::cProjectileEntity(eKind a_Kind, cEntity * a_Creator, Vector3d
cProjectileEntity::cProjectileEntity(eKind a_Kind, cEntity * a_Creator, Vector3d a_Pos, Vector3d a_Speed, double a_Width, double a_Height):
- Super(etProjectile, a_Pos, a_Width, a_Height),
- m_ProjectileKind(a_Kind),
- m_CreatorData(a_Creator->GetUniqueID(), a_Creator->IsPlayer() ? static_cast<cPlayer *>(a_Creator)->GetName() : "", a_Creator->GetEquippedWeapon().m_Enchantments),
- m_IsInGround(false)
+ cProjectileEntity(a_Kind, a_Creator, a_Pos, a_Width, a_Height)
{
SetSpeed(a_Speed);
SetYawFromSpeed();
SetPitchFromSpeed();
- SetGravity(-12.0f);
- SetAirDrag(0.01f);
}