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/SplashPotionEntity.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/Entities/SplashPotionEntity.cpp') diff --git a/src/Entities/SplashPotionEntity.cpp b/src/Entities/SplashPotionEntity.cpp index bfe708d06..8ed6eb763 100644 --- a/src/Entities/SplashPotionEntity.cpp +++ b/src/Entities/SplashPotionEntity.cpp @@ -9,13 +9,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) - - - - - //////////////////////////////////////////////////////////////////////////////// // cSplashPotionEntity: @@ -103,7 +96,7 @@ void cSplashPotionEntity::Splash(Vector3d a_HitPos) void cSplashPotionEntity::SpawnOn(cClientHandle & a_Client) { - a_Client.SendSpawnObject(*this, 73, m_PotionColor, ANGLE_TO_PROTO(GetYaw()), ANGLE_TO_PROTO(GetPitch())); + a_Client.SendSpawnObject(*this, 73, m_PotionColor); a_Client.SendEntityMetadata(*this); } -- cgit v1.2.3