1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-05 19:31:04 +00:00

Step height: Add as a player object property

Add settable player step height using the existing object property.
Breaks compatibility with old clients, add to protocol version 35.
This commit is contained in:
paramat 2017-08-06 03:57:34 +01:00 committed by paramat
parent 7cd1251d83
commit 3d0e8a691f
5 changed files with 19 additions and 2 deletions

View file

@ -147,6 +147,11 @@ public:
scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode();
inline f32 getStepHeight() const
{
return m_prop.stepheight;
}
inline bool isLocalPlayer() const
{
return m_is_local_player;