summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorSTRWarrior <STRWarrior@users.noreply.github.com>2013-12-15 21:05:18 +0100
committerSTRWarrior <STRWarrior@users.noreply.github.com>2013-12-15 21:05:18 +0100
commit9b8112dbc2db44456aaec8471c14e5fb6aa04a4d (patch)
treec213af4ffb1e053a3e58f6122abbd31b00759477 /src/Entities/Player.cpp
parentFixed player spawning packet. (diff)
parentDocumented ForceSetSpeed. (diff)
downloadcuberite-9b8112dbc2db44456aaec8471c14e5fb6aa04a4d.tar
cuberite-9b8112dbc2db44456aaec8471c14e5fb6aa04a4d.tar.gz
cuberite-9b8112dbc2db44456aaec8471c14e5fb6aa04a4d.tar.bz2
cuberite-9b8112dbc2db44456aaec8471c14e5fb6aa04a4d.tar.lz
cuberite-9b8112dbc2db44456aaec8471c14e5fb6aa04a4d.tar.xz
cuberite-9b8112dbc2db44456aaec8471c14e5fb6aa04a4d.tar.zst
cuberite-9b8112dbc2db44456aaec8471c14e5fb6aa04a4d.zip
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r--src/Entities/Player.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index c2a76342d..38b911fd2 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1069,6 +1069,16 @@ Vector3d cPlayer::GetThrowSpeed(double a_SpeedCoeff) const
+void cPlayer::ForceSetSpeed(Vector3d a_Direction)
+{
+ SetSpeed(a_Direction);
+ m_ClientHandle->SendEntityVelocity(*this);
+}
+
+
+
+
+
void cPlayer::MoveTo( const Vector3d & a_NewPos )
{
if ((a_NewPos.y < -990) && (GetPosY() > -100))