diff options
author | Vincent Glize <vincentglize@hotmail.fr> | 2018-05-01 19:38:37 +0200 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-05-01 19:38:37 +0200 |
commit | 24b6bd0f679f3cc5ff07bb5eb5ee787c20d3a5e8 (patch) | |
tree | 7401e75dc43ae00554bceaecbbdffeaf32a29a98 /src/game.cpp | |
parent | 55bb1938c17dfdb065a0eead97ce8094518b9049 (diff) | |
download | minetest-24b6bd0f679f3cc5ff07bb5eb5ee787c20d3a5e8.tar.gz minetest-24b6bd0f679f3cc5ff07bb5eb5ee787c20d3a5e8.tar.bz2 minetest-24b6bd0f679f3cc5ff07bb5eb5ee787c20d3a5e8.zip |
Fix invisible chat error messages (#7289)
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index 4dfb46a12..f5a542050 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -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); } |