summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-05-22 10:54:07 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-05-22 10:54:07 +0200
commit5ef6c8fe72f96dec20e2305ba190759c17512861 (patch)
tree06910de86f8769df8583cde5dafb9449b6d06d78 /src/Entities/Player.cpp
parentFixed MCADefrag compilation. (diff)
downloadcuberite-5ef6c8fe72f96dec20e2305ba190759c17512861.tar
cuberite-5ef6c8fe72f96dec20e2305ba190759c17512861.tar.gz
cuberite-5ef6c8fe72f96dec20e2305ba190759c17512861.tar.bz2
cuberite-5ef6c8fe72f96dec20e2305ba190759c17512861.tar.lz
cuberite-5ef6c8fe72f96dec20e2305ba190759c17512861.tar.xz
cuberite-5ef6c8fe72f96dec20e2305ba190759c17512861.tar.zst
cuberite-5ef6c8fe72f96dec20e2305ba190759c17512861.zip
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r--src/Entities/Player.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index c3b763278..48320b6c9 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1252,6 +1252,26 @@ void cPlayer::ForceSetSpeed(const Vector3d & a_Speed)
+void cPlayer::SetSpeed(const Vector3d & a_Speed)
+{
+ m_Speed.Set(a_Speed.x, a_Speed.y, a_Speed.z);
+ m_ClientHandle->SendEntityVelocity(*this);
+}
+
+
+
+
+
+void cPlayer::SetSpeed(double a_SpeedX, double a_SpeedY, double a_SpeedZ)
+{
+ m_Speed.Set(a_SpeedX, a_SpeedY, a_SpeedZ);
+ m_ClientHandle->SendEntityVelocity(*this);
+}
+
+
+
+
+
void cPlayer::MoveTo( const Vector3d & a_NewPos )
{
if ((a_NewPos.y < -990) && (GetPosY() > -100))