diff options
author | Mattes D <github@xoft.cz> | 2014-06-14 18:57:32 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-06-14 18:57:32 +0200 |
commit | c684812b30379ae273b40dba3951162c7cf3d9b9 (patch) | |
tree | 3114a17b201f8bfa82565195d08a116bde006861 /src/Entities/Player.h | |
parent | Merge pull request #1093 from mc-server/BindingsFix (diff) | |
parent | Removed an unused tolua_end and tolua_begin pair. (diff) | |
download | cuberite-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 'src/Entities/Player.h')
-rw-r--r-- | src/Entities/Player.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h index 83b9ad593..325ff9005 100644 --- a/src/Entities/Player.h +++ b/src/Entities/Player.h @@ -194,7 +194,8 @@ public: // Sets the current gamemode, doesn't check validity, doesn't send update packets to client void LoginSetGameMode(eGameMode a_GameMode); - /** Forces the player to move in the given direction. */ + /** Forces the player to move in the given direction. + @deprecated Use SetSpeed instead. */ void ForceSetSpeed(const Vector3d & a_Speed); // tolua_export /** Tries to move to a new position, with attachment-related checks (y == -999) */ @@ -512,6 +513,9 @@ protected: + /** Sets the speed and sends it to the client, so that they are forced to move so. */ + virtual void DoSetSpeed(double a_SpeedX, double a_SpeedY, double a_SpeedZ) override; + void ResolvePermissions(void); void ResolveGroups(void); |