diff options
author | madmaxoft <github@xoft.cz> | 2014-04-04 23:06:47 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-04-05 12:09:30 +0200 |
commit | 1cab52f86799b98940da910e84e207b6037a5cd2 (patch) | |
tree | dff323587cf3990b6ffd19b49a96dd7dd09bb1f5 /src/Entities/Player.cpp | |
parent | Merge pull request #840 from Howaner/NewBlocks (diff) | |
download | cuberite-1cab52f86799b98940da910e84e207b6037a5cd2.tar cuberite-1cab52f86799b98940da910e84e207b6037a5cd2.tar.gz cuberite-1cab52f86799b98940da910e84e207b6037a5cd2.tar.bz2 cuberite-1cab52f86799b98940da910e84e207b6037a5cd2.tar.lz cuberite-1cab52f86799b98940da910e84e207b6037a5cd2.tar.xz cuberite-1cab52f86799b98940da910e84e207b6037a5cd2.tar.zst cuberite-1cab52f86799b98940da910e84e207b6037a5cd2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 646aad50f..7f2e5b4c2 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -1124,6 +1124,17 @@ void cPlayer::TeleportToCoords(double a_PosX, double a_PosY, double a_PosZ) +void cPlayer::SendRotation(double a_YawDegrees, double a_PitchDegrees) +{ + SetYaw(a_YawDegrees); + SetPitch(a_PitchDegrees); + m_ClientHandle->SendPlayerMoveLook(); +} + + + + + Vector3d cPlayer::GetThrowStartPos(void) const { Vector3d res = GetEyePosition(); |