projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55bb193
)
Fix invisible chat error messages (#7289)
author
Vincent Glize
<vincentglize@hotmail.fr>
Tue, 1 May 2018 17:38:37 +0000
(19:38 +0200)
committer
SmallJoker
<SmallJoker@users.noreply.github.com>
Tue, 1 May 2018 17:38:37 +0000
(19:38 +0200)
src/game.cpp
patch
|
blob
|
history
diff --git
a/src/game.cpp
b/src/game.cpp
index 4dfb46a125ddb456b4380ab641d9890a2b44f840..f5a5420508d5f150cb36969b06b4b348e8cdb0c6 100644
(file)
--- 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);
}