From 3c75377ce679094dfe55ee9aa872dabffd2ba3f0 Mon Sep 17 00:00:00 2001 From: DarkoGNU <42816979+DarkoGNU@users.noreply.github.com> Date: Tue, 26 Apr 2022 00:16:40 +0200 Subject: Implement relative SendPlayerMoveLook. Use it in TurnToDirt (#5413) * Implement relative SendPlayerMoveLook * Use relative teleport in cBlockFarmlandHandler::TurnToDirt * Static cast to UInt8. Explicit float values * Maybe explicit doubles, too * Fix TurnToDirt for some edge cases * Improve the height check in TurnToDirt * Const is good, right? * Const - the continuation --- src/ClientHandle.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/ClientHandle.cpp') diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index db54cc77b..ef596baf0 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -2852,6 +2852,15 @@ void cClientHandle::SendPlayerListUpdatePing() +void cClientHandle::SendPlayerMoveLook (const Vector3d a_Pos, const float a_Yaw, const float a_Pitch, const bool a_IsRelative) +{ + m_Protocol->SendPlayerMoveLook(a_Pos, a_Yaw, a_Pitch, a_IsRelative); +} + + + + + void cClientHandle::SendPlayerMoveLook(void) { /* -- cgit v1.2.3