diff --git a/src/game.cpp b/src/game.cpp index a3a5f42..5495191 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -991,6 +991,9 @@ void the_game( core::rect(0,0,400,text_height+5) + v2s32(100,200), false, false); + guitext_info->setBackgroundColor(video::SColor(64, 0, 0, 0)); + guitext_info->setDrawBackground(true); + // Chat text gui::IGUIStaticText *guitext_chat = guienv->addStaticText( L"", @@ -2120,7 +2123,13 @@ void the_game( } { - guitext_info->setText(infotext.c_str()); + if(infotext.empty()) { + guitext_info->setVisible(false); + } + else { + guitext_info->setVisible(true); + guitext_info->setText(infotext.c_str()); + } } /*