aboutsummaryrefslogtreecommitdiff
path: root/src/content_cao.cpp
diff options
context:
space:
mode:
authorparamat <paramat@users.noreply.github.com>2017-11-03 19:10:53 +0000
committerparamat <mat.gregory@virginmedia.com>2017-11-06 12:54:00 +0000
commit4c40e0775ca564296a56f72ff3adce50ba925b0c (patch)
tree204f8f52953502ef56fff2f25c4d8f976524a6c8 /src/content_cao.cpp
parenta07d2594e3b9372cabbeedc98bb98903137f56b3 (diff)
downloadminetest-4c40e0775ca564296a56f72ff3adce50ba925b0c.tar.xz
Player eye height: Make this a settable player object property
Diffstat (limited to 'src/content_cao.cpp')
-rw-r--r--src/content_cao.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp
index 8bc9ad88e..861dc83e7 100644
--- a/src/content_cao.cpp
+++ b/src/content_cao.cpp
@@ -1260,6 +1260,7 @@ void GenericCAO::processMessage(const std::string &data)
collision_box.MaxEdge *= BS;
player->setCollisionbox(collision_box);
player->setCanZoom(m_prop.can_zoom);
+ player->setEyeHeight(m_prop.eye_height);
}
if ((m_is_player && !m_is_local_player) && m_prop.nametag.empty())