summaryrefslogtreecommitdiffstats
path: root/src/Entities/SplashPotionEntity.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-04-19 22:03:17 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-04-20 00:29:52 +0200
commit246acb19f99cf974080e1bdf28acd6a263d6e971 (patch)
tree1bf8b98509aea91a629ee08d7c0fc952d9e00ee5 /src/Entities/SplashPotionEntity.cpp
parentCorrect world access in NetherPortalScanner (diff)
downloadcuberite-246acb19f99cf974080e1bdf28acd6a263d6e971.tar
cuberite-246acb19f99cf974080e1bdf28acd6a263d6e971.tar.gz
cuberite-246acb19f99cf974080e1bdf28acd6a263d6e971.tar.bz2
cuberite-246acb19f99cf974080e1bdf28acd6a263d6e971.tar.lz
cuberite-246acb19f99cf974080e1bdf28acd6a263d6e971.tar.xz
cuberite-246acb19f99cf974080e1bdf28acd6a263d6e971.tar.zst
cuberite-246acb19f99cf974080e1bdf28acd6a263d6e971.zip
Diffstat (limited to 'src/Entities/SplashPotionEntity.cpp')
-rw-r--r--src/Entities/SplashPotionEntity.cpp9
1 files changed, 1 insertions, 8 deletions
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<Byte>(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);
}