aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstujones11 <stujones111@gmail.com>2018-02-10 09:42:33 +0000
committerSmallJoker <SmallJoker@users.noreply.github.com>2018-02-10 10:42:33 +0100
commit617d94c8038e3ff035eaeef7ccdfa4f442feb873 (patch)
tree7d64aa22f5d0867407529eebf6cf0e2b3e437b35 /src
parentaf89a25ff3527ccf0740926fe0b797c4403840b0 (diff)
downloadminetest-617d94c8038e3ff035eaeef7ccdfa4f442feb873.tar.gz
minetest-617d94c8038e3ff035eaeef7ccdfa4f442feb873.tar.bz2
minetest-617d94c8038e3ff035eaeef7ccdfa4f442feb873.zip
Position entity nametags relative to selection-box (#7031)
Diffstat (limited to 'src')
-rw-r--r--src/content_cao.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp
index affa092e7..2d43f4b3c 100644
--- a/src/content_cao.cpp
+++ b/src/content_cao.cpp
@@ -636,7 +636,7 @@ void GenericCAO::addToScene(ITextureSource *tsrc)
if (node && !m_prop.nametag.empty() && !m_is_local_player) {
// Add nametag
v3f pos;
- pos.Y = m_prop.collisionbox.MaxEdge.Y + 0.3f;
+ pos.Y = m_prop.selectionbox.MaxEdge.Y + 0.3f;
m_nametag = m_client->getCamera()->addNametag(node,
m_prop.nametag, m_prop.nametag_color,
pos);