mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Fix invisible chat error messages (#7289)
This commit is contained in:
parent
55bb1938c1
commit
24b6bd0f67
@ -2761,8 +2761,8 @@ void Game::updateChat(f32 dtime, const v2u32 &screensize)
|
||||
while (!chat_log_error_buf.empty()) {
|
||||
std::wstring error_message = utf8_to_wide(chat_log_error_buf.get());
|
||||
if (!g_settings->getBool("disable_escape_sequences")) {
|
||||
error_message = L"\x1b(c@red)";
|
||||
error_message.append(error_message).append(L"\x1b(c@white)");
|
||||
error_message.insert(0, L"\x1b(c@red)");
|
||||
error_message.append(L"\x1b(c@white)");
|
||||
}
|
||||
chat_backend->addMessage(L"", error_message);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user