From 246acb19f99cf974080e1bdf28acd6a263d6e971 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 19 Apr 2020 21:03:17 +0100 Subject: Delet SpawnObject params * Fix #4679 awkward... --- src/Entities/ProjectileEntity.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/Entities/ProjectileEntity.cpp') diff --git a/src/Entities/ProjectileEntity.cpp b/src/Entities/ProjectileEntity.cpp index 22b5f9a39..75ac850e6 100644 --- a/src/Entities/ProjectileEntity.cpp +++ b/src/Entities/ProjectileEntity.cpp @@ -30,13 +30,6 @@ -/** Converts an angle in radians into a byte representation used by the network protocol */ -#define ANGLE_TO_PROTO(X) static_cast(X * 255 / 360) - - - - - //////////////////////////////////////////////////////////////////////////////// // cProjectileTracerCallback: @@ -451,7 +444,7 @@ void cProjectileEntity::HandlePhysics(std::chrono::milliseconds a_Dt, cChunk & a void cProjectileEntity::SpawnOn(cClientHandle & a_Client) { // Default spawning - use the projectile kind to spawn an object: - a_Client.SendSpawnObject(*this, m_ProjectileKind, 12, ANGLE_TO_PROTO(GetYaw()), ANGLE_TO_PROTO(GetPitch())); + a_Client.SendSpawnObject(*this, m_ProjectileKind, 12); a_Client.SendEntityMetadata(*this); } -- cgit v1.2.3