aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/camera.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/camera.cpp b/src/camera.cpp
index 6c0f5d546..6893b8cbf 100644
--- a/src/camera.cpp
+++ b/src/camera.cpp
@@ -540,6 +540,12 @@ void Camera::drawNametags()
i = m_nametags.begin();
i != m_nametags.end(); ++i) {
Nametag *nametag = *i;
+ if (nametag->nametag_color.getAlpha() == 0) {
+ // Enforce hiding nametag,
+ // because if freetype is enabled, a grey
+ // shadow can remain.
+ continue;
+ }
v3f pos = nametag->parent_node->getPosition() + v3f(0.0, 1.1 * BS, 0.0);
f32 transformed_pos[4] = { pos.X, pos.Y, pos.Z, 1.0f };
trans.multiplyWith1x4Matrix(transformed_pos);