From 9d124e6b0ad109c6b613baab4e019540c58a7570 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 19 Apr 2020 01:10:14 +0100 Subject: More arrow patches * Further reduce instances of appearing black * Fix packet send and get arrows to more reliably lodge in blocks clientside * Fix hit detection failing at chunk boundaries + Use delegating constructors --- src/Entities/ProjectileEntity.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/Entities/ProjectileEntity.cpp') 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(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); } -- cgit v1.2.3