summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-06-14 18:57:32 +0200
committerMattes D <github@xoft.cz>2014-06-14 18:57:32 +0200
commitc684812b30379ae273b40dba3951162c7cf3d9b9 (patch)
tree3114a17b201f8bfa82565195d08a116bde006861 /src/Entities/Player.cpp
parentMerge pull request #1093 from mc-server/BindingsFix (diff)
parentRemoved an unused tolua_end and tolua_begin pair. (diff)
downloadcuberite-c684812b30379ae273b40dba3951162c7cf3d9b9.tar
cuberite-c684812b30379ae273b40dba3951162c7cf3d9b9.tar.gz
cuberite-c684812b30379ae273b40dba3951162c7cf3d9b9.tar.bz2
cuberite-c684812b30379ae273b40dba3951162c7cf3d9b9.tar.lz
cuberite-c684812b30379ae273b40dba3951162c7cf3d9b9.tar.xz
cuberite-c684812b30379ae273b40dba3951162c7cf3d9b9.tar.zst
cuberite-c684812b30379ae273b40dba3951162c7cf3d9b9.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index feb09b5d2..f1e0aad7e 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1257,6 +1257,17 @@ Vector3d cPlayer::GetThrowSpeed(double a_SpeedCoeff) const
void cPlayer::ForceSetSpeed(const Vector3d & a_Speed)
{
SetSpeed(a_Speed);
+}
+
+
+
+
+
+void cPlayer::DoSetSpeed(double a_SpeedX, double a_SpeedY, double a_SpeedZ)
+{
+ super::DoSetSpeed(a_SpeedX, a_SpeedY, a_SpeedZ);
+
+ // Send the speed to the client so he actualy moves
m_ClientHandle->SendEntityVelocity(*this);
}