Skip to content

Commit d2ca662

Browse files
committedMay 18, 2015
Enforce hiding nametag
Work around irrlicht bug and hide nametag if its alpha is set to 0. Thanks @TeTpaAka for pointing out workaround.
1 parent 5b03857 commit d2ca662

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

Diff for: ‎src/content_cao.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -1721,6 +1721,11 @@ void GenericCAO::processMessage(const std::string &data)
17211721
m_nametag_color = readARGB8(is);
17221722
if (m_textnode != NULL) {
17231723
m_textnode->setTextColor(m_nametag_color);
1724+
1725+
// Enforce hiding nametag,
1726+
// because if freetype is enabled, a grey
1727+
// shadow can remain.
1728+
m_textnode->setVisible(m_nametag_color.getAlpha() > 0);
17241729
}
17251730
}
17261731
}

0 commit comments

Comments
 (0)
Please sign in to comment.