diff options
author | BlockMen <nmuelll@web.de> | 2015-02-20 23:10:23 +0100 |
---|---|---|
committer | BlockMen <nmuelll@web.de> | 2015-02-21 13:31:42 +0100 |
commit | aa31e3c7f31fc00abc64551ebc03ed757311280a (patch) | |
tree | 75d8f73be01891b2c44e39b83b39439f31c6af5f /src | |
parent | cf4045ff0f7c96614e64b2b336e62a240f443ea6 (diff) | |
download | minetest-aa31e3c7f31fc00abc64551ebc03ed757311280a.tar.gz minetest-aa31e3c7f31fc00abc64551ebc03ed757311280a.tar.bz2 minetest-aa31e3c7f31fc00abc64551ebc03ed757311280a.zip |
Use skin font for usernames (fixes #2363)
Diffstat (limited to 'src')
-rw-r--r-- | src/content_cao.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp index 4994c8b20..ddfa3b032 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -962,7 +962,7 @@ void GenericCAO::addToScene(scene::ISceneManager *smgr, ITextureSource *tsrc, // Add a text node for showing the name gui::IGUIEnvironment* gui = irr->getGUIEnvironment(); std::wstring wname = narrow_to_wide(m_name); - m_textnode = smgr->addTextSceneNode(gui->getBuiltInFont(), + m_textnode = smgr->addTextSceneNode(gui->getSkin()->getFont(), wname.c_str(), video::SColor(255,255,255,255), node); m_textnode->grab(); m_textnode->setPosition(v3f(0, BS*1.1, 0)); |