diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/content_cao.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp index b49c64ae8..d80804d4a 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -1721,6 +1721,11 @@ void GenericCAO::processMessage(const std::string &data) m_nametag_color = readARGB8(is); if (m_textnode != NULL) { m_textnode->setTextColor(m_nametag_color); + + // Enforce hiding nametag, + // because if freetype is enabled, a grey + // shadow can remain. + m_textnode->setVisible(m_nametag_color.getAlpha() > 0); } } } |