diff options
author | paramat <paramat@users.noreply.github.com> | 2017-08-06 03:57:34 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-08-09 11:06:22 +0100 |
commit | 3d0e8a691ff97a148f8c106bc23875df02226f9c (patch) | |
tree | f489270236bdf888652ddeb90609f83e760c0f64 /src/content_cao.h | |
parent | 7cd1251d83bd66a73fa7e9b676e6fe30e91e613a (diff) | |
download | hax-minetest-server-3d0e8a691ff97a148f8c106bc23875df02226f9c.tar.gz hax-minetest-server-3d0e8a691ff97a148f8c106bc23875df02226f9c.zip |
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.
Diffstat (limited to 'src/content_cao.h')
-rw-r--r-- | src/content_cao.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/content_cao.h b/src/content_cao.h index d6d5deac8..dc254ad5b 100644 --- a/src/content_cao.h +++ b/src/content_cao.h @@ -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; |