summaryrefslogtreecommitdiff
path: root/src/content_sao.cpp
diff options
context:
space:
mode:
authorparamat <paramat@users.noreply.github.com>2017-08-06 03:57:34 +0100
committerparamat <mat.gregory@virginmedia.com>2017-08-09 11:06:22 +0100
commit3d0e8a691ff97a148f8c106bc23875df02226f9c (patch)
treef489270236bdf888652ddeb90609f83e760c0f64 /src/content_sao.cpp
parent7cd1251d83bd66a73fa7e9b676e6fe30e91e613a (diff)
downloadminetest-3d0e8a691ff97a148f8c106bc23875df02226f9c.tar.gz
minetest-3d0e8a691ff97a148f8c106bc23875df02226f9c.tar.bz2
minetest-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_sao.cpp')
-rw-r--r--src/content_sao.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/content_sao.cpp b/src/content_sao.cpp
index 5ba4f1ad1..674ab580c 100644
--- a/src/content_sao.cpp
+++ b/src/content_sao.cpp
@@ -799,6 +799,7 @@ PlayerSAO::PlayerSAO(ServerEnvironment *env_, RemotePlayer *player_, u16 peer_id
// end of default appearance
m_prop.is_visible = true;
m_prop.makes_footstep_sound = true;
+ m_prop.stepheight = PLAYER_DEFAULT_STEPHEIGHT * BS;
m_hp = PLAYER_MAX_HP;
}