summaryrefslogtreecommitdiff
path: root/src/content_cao.h
diff options
context:
space:
mode:
authorSapier <sapier AT gmx dot net>2015-12-19 16:37:13 +0100
committerEkdohibs <nathanael.courant@laposte.net>2017-05-06 21:18:17 +0200
commit45ab62d6a3d90ab3b97aec88251a766cb5dd1899 (patch)
tree7292388cc626953db1070035976795b7fc4f9f03 /src/content_cao.h
parent5ebf8f945050e9c74a3bb6784a0844d1fb68bdff (diff)
downloadminetest-45ab62d6a3d90ab3b97aec88251a766cb5dd1899.tar.gz
minetest-45ab62d6a3d90ab3b97aec88251a766cb5dd1899.tar.bz2
minetest-45ab62d6a3d90ab3b97aec88251a766cb5dd1899.zip
Use stepheight from CAO instead of hardcoded value
Diffstat (limited to 'src/content_cao.h')
-rw-r--r--src/content_cao.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/content_cao.h b/src/content_cao.h
index 3be753529..dde1dfe6f 100644
--- a/src/content_cao.h
+++ b/src/content_cao.h
@@ -154,6 +154,12 @@ public:
scene::IBillboardSceneNode *getSpriteSceneNode();
+
+ inline f32 getStepheight() const
+ {
+ return m_prop.stepheight;
+ }
+
inline bool isPlayer() const
{
return m_is_player;