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/Protocol/Protocol.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Protocol/Protocol.h') diff --git a/src/Protocol/Protocol.h b/src/Protocol/Protocol.h index 4f7590c2c..f1d85f014 100644 --- a/src/Protocol/Protocol.h +++ b/src/Protocol/Protocol.h @@ -422,6 +422,7 @@ public: virtual void SendPlayerListUpdateGameMode (const cPlayer & a_Player) = 0; virtual void SendPlayerListUpdatePing () = 0; virtual void SendPlayerListUpdateDisplayName(const cPlayer & a_Player, const AString & a_CustomName) = 0; + virtual void SendPlayerMoveLook (Vector3d a_Pos, float a_Yaw, float a_Pitch, bool a_IsRelative) = 0; virtual void SendPlayerMoveLook (void) = 0; virtual void SendPlayerPermissionLevel (void) = 0; virtual void SendPlayerPosition (void) = 0; -- cgit v1.2.3